fix(app): keep update progress visible on the welcome screen (#951)

Check for Updates on the welcome screen showed nothing while the request was out: the check ran only as a status-bar task, and the welcome screen has no status bar. Leaving a project also dropped every notification, including a running update download.

A check started with no project or LightEdit window open now shows its progress in a balloon (keyed like the result, so the result replaces it); project windows keep it in the status bar. A project switch clears only project notifications and keeps the app-wide update ones.

Co-authored-by: youngtseup <[email protected]>
Цей коміт міститься в:
youngtseup authored and GitHub committed 2026-11-03 14:38:19 +08:00
1 джерело 843ff74d5d
коміт c50d212a1d
5 files changed
+64 -4

No files matched your search

+2 -2
Переглянути файл
@@ -15,7 +15,7 @@ import { installBrowserGuards } from "./browserGuards";
import { installDistractionFree } from "./distractionFree";
import { installFileDrop } from "./fileDrop";
import { installFocusTracking } from "./focus";
import { clearNotifications, installNotifyEvents, notificationServiceImpl } from "./notificationStore";
import { clearProjectNotifications, installNotifyEvents, notificationServiceImpl } from "./notificationStore";
import {
NOTIFICATIONS_TOOL_WINDOW,
NotificationsHeaderActions,
@@ -51,7 +51,7 @@ export function activateWorkbench(): () => void {
const unsubProject = useProject.subscribe((s, prev) => {
if (s.project?.root === prev.project?.root && s.lightEdit === prev.lightEdit) return;
// The previous project's notifications (and their actions) no longer apply.
if (prev.project) clearNotifications();
if (prev.project) clearProjectNotifications();
onProject(s.project?.root ?? null);
});