debug: Debug builds now launch in debug mode and with settings open

This commit is contained in:
Jade Macho 2025-06-29 23:50:57 +02:00
parent a37aca9587
commit 5bf237ce57
Signed by: 0x0ade
GPG key ID: E1960710FE4FBEEF
2 changed files with 10 additions and 1 deletions

View file

@ -6,7 +6,12 @@ namespace CustomResolution;
/// </summary> /// </summary>
public class DebugConfiguration 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; public SetWindowSizeMode SetWindowSizeMode { get; set; } = SetWindowSizeMode.InterceptSystemConfig;

View file

@ -15,6 +15,10 @@ public sealed class PluginUI : IDisposable
Service.PluginInterface.UiBuilder.OpenConfigUi += ShowConfigWindow; Service.PluginInterface.UiBuilder.OpenConfigUi += ShowConfigWindow;
WindowSystem.AddWindow(_configWindow = new ConfigWindow()); WindowSystem.AddWindow(_configWindow = new ConfigWindow());
#if DEBUG
SettingsVisible = true;
#endif
} }
public WindowSystem WindowSystem { get; } = new("CustomResolution"); public WindowSystem WindowSystem { get; } = new("CustomResolution");