Install downloaded updates while in tray
This commit is contained in:
parent
c4521a063c
commit
12a2ec8dd4
6 changed files with 87 additions and 24 deletions
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:',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue