mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-11 23:18:22 +08:00
Add: Refresh webapp
This commit is contained in:
@@ -48,6 +48,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@ant-design/icons-vue": "^6.0.1",
|
||||
"electron-updater": "4.6.0",
|
||||
"python-shell": "^3.0.0",
|
||||
"tree-kill": "^1.2.2",
|
||||
"vue": "3.2.19",
|
||||
|
||||
@@ -77,6 +77,13 @@ const createWindow = async () => {
|
||||
mainWindow?.webContents.openDevTools()
|
||||
}
|
||||
});
|
||||
// Refresh
|
||||
globalShortcut.register('Ctrl+R', function () {
|
||||
mainWindow?.reload()
|
||||
});
|
||||
globalShortcut.register('Ctrl+Shift+R', function () {
|
||||
mainWindow?.reload()
|
||||
});
|
||||
|
||||
// Minimize, maximize, close window.
|
||||
ipcMain.on('window-min', function () {
|
||||
|
||||
Reference in New Issue
Block a user