mirror of
https://github.com/W1NDes/M-AzurLaneAutoScript.git
synced 2026-05-14 07:08:04 +08:00
Add: Refresh webapp
This commit is contained in:
parent
5b1928697b
commit
3e1de2d73c
@ -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 () {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user