diff options
author | Vijay A <vraravam@users.noreply.github.com> | 2024-06-23 22:21:14 +0530 |
---|---|---|
committer | Vijay A <vraravam@users.noreply.github.com> | 2024-06-23 22:21:14 +0530 |
commit | 65cea57b6195f998ccb0f664e7cdbd90ce298013 (patch) | |
tree | 5133f59ccc69d82c7e053de90a03a3268a492af1 /src/index.ts | |
parent | 6.7.5-nightly.15 [skip ci] (diff) | |
download | ferdium-app-65cea57b6195f998ccb0f664e7cdbd90ce298013.tar.gz ferdium-app-65cea57b6195f998ccb0f664e7cdbd90ce298013.tar.zst ferdium-app-65cea57b6195f998ccb0f664e7cdbd90ce298013.zip |
Minor refactoring to not return menu where not needed
Diffstat (limited to 'src/index.ts')
-rw-r--r-- | src/index.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/index.ts b/src/index.ts index a602c994e..286b305c2 100644 --- a/src/index.ts +++ b/src/index.ts | |||
@@ -702,8 +702,7 @@ ipcMain.on('toggle-pause-download', (_e, data) => { | |||
702 | 702 | ||
703 | // Quit when all windows are closed. | 703 | // Quit when all windows are closed. |
704 | app.on('window-all-closed', () => { | 704 | app.on('window-all-closed', () => { |
705 | // On OS X it is common for applications and their menu bar | 705 | // On macos it is common for applications and their menu bar to stay active until the user quits explicitly with Cmd + Q |
706 | // to stay active until the user quits explicitly with Cmd + Q | ||
707 | if ( | 706 | if ( |
708 | retrieveSettingValue( | 707 | retrieveSettingValue( |
709 | 'runInBackground', | 708 | 'runInBackground', |
@@ -746,8 +745,7 @@ app.on('before-quit', event => { | |||
746 | }); | 745 | }); |
747 | 746 | ||
748 | app.on('activate', () => { | 747 | app.on('activate', () => { |
749 | // On OS X it's common to re-create a window in the app when the | 748 | // On macos it's common to re-create a window in the app when the dock icon is clicked and there are no other windows open. |
750 | // dock icon is clicked and there are no other windows open. | ||
751 | if (mainWindow === null) { | 749 | if (mainWindow === null) { |
752 | createWindow(); | 750 | createWindow(); |
753 | } else { | 751 | } else { |