fix(updater): only toast 'Up to Date' on manual user-initiated checks
This commit is contained in:
1 parent
bea8aa9542
commit
7f2d028080
3 files changed
+52
-8
No files matched your search
@@ -91,7 +91,9 @@ export function registerCoreReadHandlers({
|
||||
});
|
||||
|
||||
registerHandle(IPC_CHANNELS.checkForUpdates, async () => {
|
||||
return ok(await checkForUpdates());
|
||||
// Invocation via IPC only happens when the user opens Settings and clicks
|
||||
// "Check for updates". Pass manual:true so the Up-to-Date toast fires.
|
||||
return ok(await checkForUpdates({ manual: true }));
|
||||
});
|
||||
|
||||
registerHandle(IPC_CHANNELS.getSidebarBadges, async (_event, companyId) => {
|
||||
|
||||
Reference in new issue
Block a user