fix(updater): only toast 'Up to Date' on manual user-initiated checks

This commit is contained in:
ZacharyZhang-NY committed 2026-04-16 22:52:16 -04:00
1 parent bea8aa9542
commit 7f2d028080
3 files changed
+52 -8

No files matched your search

+3 -1
View File
@@ -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) => {