Add: Refresh webapp

This commit is contained in:
LmeSzinc 2021-10-23 14:50:44 +08:00
parent 5b1928697b
commit 3e1de2d73c
2 changed files with 8 additions and 0 deletions

View File

@ -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",

View File

@ -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 () {