mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-12 10:53:51 +00:00
config: small improvements
- added small improvements to installation - show custom icons on install / uninstall - handle developer tools in app
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 151 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 151 KiB |
+3
-5
@@ -129,11 +129,6 @@ app.whenReady().then(() => {
|
||||
win.focus();
|
||||
});
|
||||
|
||||
globalShortcut.register('Alt+t', () => {
|
||||
// Show dev tools
|
||||
win.webContents.openDevTools({ mode: 'detach' });
|
||||
});
|
||||
|
||||
// recreate window if no others open
|
||||
app.on('activate', () => {
|
||||
if (BrowserWindow.getAllWindows().length === 0) {
|
||||
@@ -245,6 +240,9 @@ ipcMain.on('set-window', (event, arg) => {
|
||||
} else if (arg === 'to-tray') {
|
||||
// window to tray
|
||||
win.hide();
|
||||
} else if (arg === 'show-dev') {
|
||||
// Show dev tools
|
||||
win.webContents.openDevTools({ mode: 'detach' });
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
+3
-1
@@ -54,7 +54,9 @@
|
||||
"createStartMenuShortcut": true,
|
||||
"deleteAppDataOnUninstall": true,
|
||||
"runAfterFinish": false,
|
||||
"installerIcon": "icon.ico"
|
||||
"installerIcon": "icon.ico",
|
||||
"installerSidebar": "ontime-install.bmp",
|
||||
"uninstallerSidebar": "ontime-uninstall.bmp"
|
||||
},
|
||||
"files": [
|
||||
"**/*",
|
||||
|
||||
Reference in New Issue
Block a user