mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-20 02:08:57 +00:00
Install downloaded updates while in tray
This commit is contained in:
12
app/main.ts
12
app/main.ts
@@ -1161,7 +1161,17 @@ async function readyForUpdates() {
|
||||
settingsChannel !== undefined,
|
||||
'SettingsChannel must be initialized'
|
||||
);
|
||||
await updater.start(settingsChannel, getLogger(), getMainWindow);
|
||||
await updater.start({
|
||||
settingsChannel,
|
||||
logger: getLogger(),
|
||||
getMainWindow,
|
||||
canRunSilently: () => {
|
||||
return (
|
||||
systemTrayService?.isVisible() === true &&
|
||||
mainWindow?.isVisible() === false
|
||||
);
|
||||
},
|
||||
});
|
||||
} catch (error) {
|
||||
getLogger().error(
|
||||
'Error starting update checks:',
|
||||
|
||||
Reference in New Issue
Block a user