diff --git a/src/MaaWpfGui/Configuration/Root.cs b/src/MaaWpfGui/Configuration/Root.cs index 29ab0eade1..14e46427da 100644 --- a/src/MaaWpfGui/Configuration/Root.cs +++ b/src/MaaWpfGui/Configuration/Root.cs @@ -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;