дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-08 19:02:17 +02:00
The welcome screen has no status bar, so clicking Install and Restart there showed nothing until the download ended. The notification now stays with the download progress and Cancel, and a cancelled update says so. Fixes #491
15 рядки
534 B
TypeScript
15 рядки
534 B
TypeScript
/** The running update's progress in its balloon, for windows without a status bar (the welcome screen). */
|
|
import { ProgressBar } from "@/ui";
|
|
import { useTasks } from "@/workbench/tasks";
|
|
|
|
export function UpdateBalloonBody({ task }: { task: string }) {
|
|
const current = useTasks((s) => s.tasks.find((t) => t.id === task));
|
|
if (!current || current.done) return null;
|
|
return (
|
|
<>
|
|
{current.message && <div>{current.message}</div>}
|
|
<ProgressBar value={current.fraction} aria-label={current.title} />
|
|
</>
|
|
);
|
|
}
|