Skip to content

Commit

Permalink
add ShowConsoleWindowInGUIMode
Browse files Browse the repository at this point in the history
  • Loading branch information
MikiraSora committed Oct 26, 2024
1 parent 330757e commit ee4ddc8
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 0 deletions.
3 changes: 3 additions & 0 deletions OngekiFumenEditor/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@
<setting name="EnableUpdateCheck" serializeAs="String">
<value>True</value>
</setting>
<setting name="ShowConsoleWindowInGUIMode" serializeAs="String">
<value>False</value>
</setting>
</OngekiFumenEditor.Properties.ProgramSetting>
<OngekiFumenEditor.Properties.LogSetting>
<setting name="LogFileDirPath" serializeAs="String">
Expand Down
2 changes: 2 additions & 0 deletions OngekiFumenEditor/AppBootstrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@ public async void OnStartupForGUI(object sender, StartupEventArgs e)

#if DEBUG
ConsoleWindowHelper.SetConsoleWindowVisible(true);
#else
ConsoleWindowHelper.SetConsoleWindowVisible(ProgramSetting.Default.ShowConsoleWindowInGUIMode);
#endif

InitExceptionCatcher();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
Margin="10,0,10,10"
Content="{markup:Translate [DisableShowSplashScreenAfterBoot]}"
IsChecked="{Binding Setting.DisableShowSplashScreenAfterBoot}" />
<CheckBox
Margin="10,0,10,10"
Content="Show console window"
IsChecked="{Binding Setting.ShowConsoleWindowInGUIMode}" />
</StackPanel>
</GroupBox>
<GroupBox Margin="5" Header="{markup:Translate [CrashDumpFile]}">
Expand Down
12 changes: 12 additions & 0 deletions OngekiFumenEditor/Properties/ProgramSetting.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions OngekiFumenEditor/Properties/ProgramSetting.settings
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,8 @@
<Setting Name="EnableUpdateCheck" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
</Setting>
<Setting Name="ShowConsoleWindowInGUIMode" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
</Settings>
</SettingsFile>

0 comments on commit ee4ddc8

Please sign in to comment.