feat(37): restore all scenes to factory defaults
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user