From 7221b0485f71d60bcabf33b15c98d0fd9edef1df Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 9 May 2024 09:20:57 +0200 Subject: [PATCH] added reload option to context menu and do not enforce single-instance if profile is specified explicitly --- src/main/index.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/index.ts b/src/main/index.ts index 5566ecd2..43062780 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -150,6 +150,12 @@ contextMenu({ showSaveImageAs: true, showSearchWithGoogle: false, showInspectElement: true, + append: (_defaultActions, _parameters, browserWindow) => [ + { + label: 'Reload', + click: () => (browserWindow as BrowserWindow).reload(), + }, + ], }); console.log('APP PATH: ', app.getAppPath()); @@ -157,7 +163,7 @@ console.log('RUNNING ON PLATFORM: ', process.platform); const isFirstInstance = app.requestSingleInstanceLock(); -if (!isFirstInstance && app.isPackaged) { +if (!isFirstInstance && app.isPackaged && !VALIDATED_CLI_ARGS.profile) { app.quit(); }