feat(37): restore all scenes to factory defaults

This commit is contained in:
2026-11-10 17:59:28 -08:00
parent ff1c1965e0
commit b8eb2b4451
2 changed files with 46 additions and 0 deletions
+10
View File
@@ -165,6 +165,16 @@ public partial class LayoutStore : IDisposable
return true;
}
/// <summary>Restores the full factory snapshot without changing the active build stamp.</summary>
public bool RestoreAllDefaults()
{
if (GetSnapshotState(DefaultsInitializedKey) != "1") return false;
var buildId = GetSnapshotState(CurrentBuildIdKey);
if (string.IsNullOrWhiteSpace(buildId)) return false;
RestoreDefaults(buildId);
return true;
}
private string? GetCurrentWebcamId()
{
using var cmd = _connection.CreateCommand();