refactor(desktop): reorganize workspace panels and navigation
This commit is contained in:
1 parent
826745b407
commit
1f73765745
92 files changed
+5811
-2650
No files matched your search
@@ -267,7 +267,11 @@ class Projects extends _$Projects {
|
||||
}
|
||||
checkCurrent();
|
||||
if (selectedDocument != null) {
|
||||
await _prepareTimeline(active.id, selectedDocument);
|
||||
await _prepareTimeline(
|
||||
active.id,
|
||||
selectedDocument,
|
||||
preparePreview: false,
|
||||
);
|
||||
}
|
||||
checkCurrent();
|
||||
await ref
|
||||
@@ -653,8 +657,9 @@ class Projects extends _$Projects {
|
||||
|
||||
Future<EditorTimelineSession> _prepareTimeline(
|
||||
String projectId,
|
||||
TimelineDocument document,
|
||||
) async {
|
||||
TimelineDocument document, {
|
||||
bool preparePreview = true,
|
||||
}) async {
|
||||
final session = await _workspace.openTimelineSession(projectId, document);
|
||||
await TimelineViewStateBinding.prepare(
|
||||
projectId: projectId,
|
||||
@@ -662,6 +667,9 @@ class Projects extends _$Projects {
|
||||
session: session,
|
||||
repository: ref.read(timelineViewSettingsRepositoryProvider),
|
||||
);
|
||||
// The preview panel owns asynchronous startup after project publication.
|
||||
// Cached controllers still bind synchronously when revisiting a project.
|
||||
if (!preparePreview) return session;
|
||||
try {
|
||||
await ref.read(previewControllerRegistryProvider).prepare((
|
||||
projectId,
|
||||
|
||||
Reference in new issue
Block a user