chore: warning CS8625: Cannot convert null literal to non-nullable reference type.

[skip changelog]
This commit is contained in:
uye
2025-07-21 22:58:30 +08:00
parent d6f865fed9
commit a00fa4e353

View File

@@ -49,7 +49,7 @@ public class Root : INotifyPropertyChanged
get
{
Configurations.TryGetValue(Current, out var result);
return result;
return result ?? new SpecificConfig();
}
set => Configurations[Current] = value;