refactor(desktop): reorganize workspace panels and navigation
Gitea CI / Windows x64 and Android (pull_request) Successful in 16m21s
Gitea CI / Gitea CI passed (pull_request) Successful in 3s

This commit is contained in:
lingjhf committed 2026-10-06 12:11:59 +08:00
1 parent 826745b407
commit 1f73765745
92 files changed
+5811 -2650

No files matched your search

+6
View File
@@ -33,10 +33,14 @@ void main() {
timelines.single.id,
);
final session = await workspace.openTimelineSession(firstId, document);
final thumbnails = session.thumbnails;
final waveforms = session.waveforms;
await workspace.open('${root.path}/Two.cutdex', name: 'Two');
await workspace.open('${root.path}/One.cutdex', expectedId: firstId);
final restored = await workspace.openTimelineSession(firstId, document);
expect(restored, same(session));
expect(restored.thumbnails, same(thumbnails));
expect(restored.waveforms, same(waveforms));
expect(restored.acceptsEdits, isTrue);
await workspace.open('${root.path}/Two.cutdex');
await workspace.open('${root.path}/Three.cutdex', name: 'Three');
@@ -44,6 +48,8 @@ void main() {
expect(workspace.cachedProjectIds.length, 3);
expect(workspace.cachedProjectIds, isNot(contains(firstId)));
expect(session.acceptsEdits, isFalse);
expect(() => thumbnails.addListener(() {}), throwsFlutterError);
expect(() => waveforms.addListener(() {}), throwsFlutterError);
},
);