diff --git a/CustomResolution2782/DebugConfiguration.cs b/CustomResolution2782/DebugConfiguration.cs index b353d92..729c51e 100644 --- a/CustomResolution2782/DebugConfiguration.cs +++ b/CustomResolution2782/DebugConfiguration.cs @@ -6,7 +6,12 @@ namespace CustomResolution; /// public class DebugConfiguration { - public bool IsDebug { get; set; } = false; + public bool IsDebug { get; set; } = +#if DEBUG + true; +#else + false; +#endif public SetWindowSizeMode SetWindowSizeMode { get; set; } = SetWindowSizeMode.InterceptSystemConfig; diff --git a/CustomResolution2782/PluginUI.cs b/CustomResolution2782/PluginUI.cs index d6454f1..706add7 100644 --- a/CustomResolution2782/PluginUI.cs +++ b/CustomResolution2782/PluginUI.cs @@ -15,6 +15,10 @@ public sealed class PluginUI : IDisposable Service.PluginInterface.UiBuilder.OpenConfigUi += ShowConfigWindow; WindowSystem.AddWindow(_configWindow = new ConfigWindow()); + +#if DEBUG + SettingsVisible = true; +#endif } public WindowSystem WindowSystem { get; } = new("CustomResolution");