debug: Debug builds now launch in debug mode and with settings open
This commit is contained in:
parent
a37aca9587
commit
5bf237ce57
2 changed files with 10 additions and 1 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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");
|
||||||
|
|
Loading…
Add table
Reference in a new issue