merge: rc.14 parcel nousage
This commit is contained in:
commit
000eb882b9
88 files changed
+36
-180
No files matched your search
@@ -305,6 +305,20 @@ public sealed class SettingsLogicTests
|
||||
Assert.Equal((640, 30, 3.5, true), (copy.ThumbnailLongEdge, copy.ScanIntervalMinutes, copy.NightBrightnessPercent, copy.DeepAnalysisAfterScan));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void AnOldSettingsFileWithUsageCountsStillLoads()
|
||||
{
|
||||
// Chronos sends nothing about its use (owner review 4, R2): the setting is gone, and a file that still carries it loads
|
||||
// with its other values and is saved without it.
|
||||
Assert.Null(typeof(AppSettings).GetProperty("AnonymousUsageCounts"));
|
||||
var path = Path.Combine(_context.CreateTempDirectory("settings"), "settings.json");
|
||||
File.WriteAllText(path, """{ "Theme": "Light", "AnonymousUsageCounts": true, "OsNotifications": false }""");
|
||||
var loaded = AppSettings.Load(path);
|
||||
Assert.Equal((Chronos.Ui.Theming.AppTheme.Light, false), (loaded.Theme, loaded.OsNotifications));
|
||||
loaded.Save(path);
|
||||
Assert.False(File.ReadAllText(path).Contains("AnonymousUsageCounts", StringComparison.Ordinal), "saved without the removed member");
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void BackgroundPriorityRaisesTheInterfaceOnlyInFront()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user