perf(settings): batch and deduplicate writes and persist panel dimensions

This commit is contained in:
lingjhf committed 2026-10-09 19:20:54 +08:00
1 parent bc3fdd6119
commit 02413383d8
23 files changed
+869 -83

No files matched your search

+1
View File
@@ -44,6 +44,7 @@ class McpSettings extends _$McpSettings {
port: port ?? current.port,
);
_validate(next);
if (next == current) return;
await _persist(next);
if (ref.mounted) state = AsyncData(next);
});