diff --git a/src/MaaWpfGui/Configuration/ConfigFactory.cs b/src/MaaWpfGui/Configuration/ConfigFactory.cs index deb298dee4..37c878f8a8 100644 --- a/src/MaaWpfGui/Configuration/ConfigFactory.cs +++ b/src/MaaWpfGui/Configuration/ConfigFactory.cs @@ -131,7 +131,7 @@ namespace MaaWpfGui.Configuration }; } - private static Root Root => _rootConfig.Value; + public static Root Root => _rootConfig.Value; public static readonly SpecificConfig CurrentConfig = Root.CurrentConfig; diff --git a/src/MaaWpfGui/Configuration/GUI.cs b/src/MaaWpfGui/Configuration/GUI.cs index 2fdccedf8f..71cf6684f2 100644 --- a/src/MaaWpfGui/Configuration/GUI.cs +++ b/src/MaaWpfGui/Configuration/GUI.cs @@ -47,7 +47,7 @@ namespace MaaWpfGui.Configuration /// /// 暗黑的主题。 /// - Dark + Dark, } } } diff --git a/src/MaaWpfGui/Configuration/SpecificConfig.cs b/src/MaaWpfGui/Configuration/SpecificConfig.cs index 5b4d0f8549..bc2b8bc6cd 100644 --- a/src/MaaWpfGui/Configuration/SpecificConfig.cs +++ b/src/MaaWpfGui/Configuration/SpecificConfig.cs @@ -15,6 +15,7 @@ namespace MaaWpfGui.Configuration { public class SpecificConfig { - public GUI GUI { get; } = new GUI(); + // ReSharper disable once UnusedAutoPropertyAccessor.Global + public GUI GUI { get; set; } = new GUI(); } }