Skip to content

Commit

Permalink
Merge pull request #56 from WeiqinYang1994/issue175
Browse files Browse the repository at this point in the history
Pull Request For Issue #1, #2, #4, #7, #8, #9, #28 AND fix issues according to @cskeogh's reviewing comment
  • Loading branch information
WeiqinYang97 committed May 11, 2021
2 parents 84b8e36 + 9f0f9a1 commit a028cc5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion source/main/modules/window-manager/index.ts
Expand Up @@ -315,7 +315,10 @@ export default class WindowManager {
}

this._mainWindow.on('show', () => {
this._addTray()
const leaveAppRunning = Boolean(global.config.get('system.leaveAppRunning'))
if (leaveAppRunning) {
this._addTray()
}
})

// Listens to events from the window
Expand Down
2 changes: 1 addition & 1 deletion source/win-preferences/schema/advanced.js
Expand Up @@ -38,7 +38,7 @@ export default {
},
{
type: 'checkbox',
label: 'Leave app running in the notification area', // trans('dialog.preferences.leave_app_running'),
label: process.platform === 'darwin' ? 'Show app in the notification area' : 'Leave app running in the notification area',
model: 'system.leaveAppRunning'
}
],
Expand Down

0 comments on commit a028cc5

Please sign in to comment.