diff options
| author | Maze Winther <mazewinther@gmail.com> | 2026-02-05 14:28:16 +0100 |
|---|---|---|
| committer | Maze Winther <mazewinther@gmail.com> | 2026-02-05 14:28:16 +0100 |
| commit | d0b4b1a5fc439d68371d8cfa677348250afec88b (patch) | |
| tree | 553771dac501910d10f9176385ea7c93990cd4ae /apps/web/src/core/managers | |
| parent | 2257ca2e6f9f8834880ea9bab4355c168ee6c33b (diff) | |
| download | opencut-d0b4b1a5fc439d68371d8cfa677348250afec88b.tar.gz | |
fix migration dialog
Diffstat (limited to 'apps/web/src/core/managers')
| -rw-r--r-- | apps/web/src/core/managers/project-manager.ts | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/web/src/core/managers/project-manager.ts b/apps/web/src/core/managers/project-manager.ts index 94576879..c7497ef0 100644 --- a/apps/web/src/core/managers/project-manager.ts +++ b/apps/web/src/core/managers/project-manager.ts @@ -24,6 +24,7 @@ import { CURRENT_PROJECT_VERSION, migrations, runStorageMigrations, + type MigrationProgress, } from "@/services/storage/migrations"; import { DEFAULT_TIMELINE_VIEW_STATE } from "@/constants/timeline-constants"; @@ -58,7 +59,13 @@ export class ProjectManager { } this.storageMigrationPromise = (async () => { - await runStorageMigrations({ migrations }); + await runStorageMigrations({ + migrations, + onProgress: (progress: MigrationProgress) => { + this.migrationState = progress; + this.notify(); + }, + }); })(); await this.storageMigrationPromise; |
