desktop: sqlite migration progress bar (#13294)

This commit is contained in:
Brendan Allan 2026-02-12 17:44:06 +08:00 committed by GitHub
commit 1413d77b1f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 197 additions and 80 deletions

View file

@ -23,6 +23,7 @@ export const commands = {
/** Events */
export const events = {
loadingWindowComplete: makeEvent<LoadingWindowComplete>("loading-window-complete"),
sqliteMigrationProgress: makeEvent<SqliteMigrationProgress>("sqlite-migration-progress"),
};
/* Types */
@ -37,6 +38,8 @@ export type ServerReadyData = {
password: string | null,
};
export type SqliteMigrationProgress = { type: "InProgress"; value: number } | { type: "Done" };
export type WslConfig = {
enabled: boolean,
};