Enable minimize to tray on linux in production
This commit is contained in:
parent
2ce23c20ee
commit
beee8414a3
6 changed files with 81 additions and 48 deletions
|
@ -21,8 +21,7 @@ export class SystemTraySettingCache {
|
|||
|
||||
constructor(
|
||||
private readonly ephemeralConfig: Pick<ConfigType, 'get' | 'set'>,
|
||||
private readonly argv: Array<string>,
|
||||
private readonly appVersion: string
|
||||
private readonly argv: Array<string>
|
||||
) {}
|
||||
|
||||
async get(): Promise<SystemTraySetting> {
|
||||
|
@ -53,7 +52,7 @@ export class SystemTraySettingCache {
|
|||
log.info(
|
||||
`getSystemTraySetting saw --use-tray-icon flag. Returning ${result}`
|
||||
);
|
||||
} else if (isSystemTraySupported(OS, this.appVersion)) {
|
||||
} else if (isSystemTraySupported(OS)) {
|
||||
const value = this.ephemeralConfig.get('system-tray-setting');
|
||||
if (value !== undefined) {
|
||||
log.info('getSystemTraySetting got value', value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue