perf(settings): batch and deduplicate writes and persist panel dimensions
This commit is contained in:
1 parent
bc3fdd6119
commit
02413383d8
23 files changed
+869
-83
No files matched your search
@@ -74,6 +74,7 @@ abstract class ProjectViewSettingsData with _$ProjectViewSettingsData {
|
||||
const factory ProjectViewSettingsData({
|
||||
@Default(false) bool propertiesOpen,
|
||||
double? timelineHeight,
|
||||
double? mediaWidth,
|
||||
}) = _ProjectViewSettingsData;
|
||||
}
|
||||
|
||||
@@ -101,6 +102,7 @@ class DriftProjectViewSettingsRepository
|
||||
: ProjectViewSettingsData(
|
||||
propertiesOpen: row.propertiesOpen,
|
||||
timelineHeight: row.timelineHeight,
|
||||
mediaWidth: row.mediaWidth,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -113,6 +115,7 @@ class DriftProjectViewSettingsRepository
|
||||
projectId: projectId,
|
||||
propertiesOpen: settings.propertiesOpen,
|
||||
timelineHeight: Value(settings.timelineHeight),
|
||||
mediaWidth: Value(settings.mediaWidth),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user