mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Officially support the system tray on Linux, in beta only
This commit is contained in:
@@ -20,7 +20,8 @@ export class SystemTraySettingCache {
|
||||
|
||||
constructor(
|
||||
private readonly sql: Pick<MainSQL, 'sqlCall'>,
|
||||
private readonly argv: Array<string>
|
||||
private readonly argv: Array<string>,
|
||||
private readonly appVersion: string
|
||||
) {}
|
||||
|
||||
async get(): Promise<SystemTraySetting> {
|
||||
@@ -51,7 +52,7 @@ export class SystemTraySettingCache {
|
||||
log.info(
|
||||
`getSystemTraySetting saw --use-tray-icon flag. Returning ${result}`
|
||||
);
|
||||
} else if (isSystemTraySupported()) {
|
||||
} else if (isSystemTraySupported(this.appVersion)) {
|
||||
const { value } = (await this.sql.sqlCall('getItemById', [
|
||||
'system-tray-setting',
|
||||
])) || { value: undefined };
|
||||
|
||||
Reference in New Issue
Block a user