diff --git a/OngekiFumenEditor/App.config b/OngekiFumenEditor/App.config
index 9e648332..38e652d1 100644
--- a/OngekiFumenEditor/App.config
+++ b/OngekiFumenEditor/App.config
@@ -100,6 +100,9 @@
True
+
+ False
+
diff --git a/OngekiFumenEditor/AppBootstrapper.cs b/OngekiFumenEditor/AppBootstrapper.cs
index db7a6025..8bf82231 100644
--- a/OngekiFumenEditor/AppBootstrapper.cs
+++ b/OngekiFumenEditor/AppBootstrapper.cs
@@ -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();
diff --git a/OngekiFumenEditor/Kernel/SettingPages/Program/Views/ProgramSettingView.xaml b/OngekiFumenEditor/Kernel/SettingPages/Program/Views/ProgramSettingView.xaml
index 7b21a78b..2c1ada49 100644
--- a/OngekiFumenEditor/Kernel/SettingPages/Program/Views/ProgramSettingView.xaml
+++ b/OngekiFumenEditor/Kernel/SettingPages/Program/Views/ProgramSettingView.xaml
@@ -29,6 +29,10 @@
Margin="10,0,10,10"
Content="{markup:Translate [DisableShowSplashScreenAfterBoot]}"
IsChecked="{Binding Setting.DisableShowSplashScreenAfterBoot}" />
+
diff --git a/OngekiFumenEditor/Properties/ProgramSetting.Designer.cs b/OngekiFumenEditor/Properties/ProgramSetting.Designer.cs
index 4d23cc62..4531d7a2 100644
--- a/OngekiFumenEditor/Properties/ProgramSetting.Designer.cs
+++ b/OngekiFumenEditor/Properties/ProgramSetting.Designer.cs
@@ -178,5 +178,17 @@ public bool EnableUpdateCheck {
this["EnableUpdateCheck"] = value;
}
}
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("False")]
+ public bool ShowConsoleWindowInGUIMode {
+ get {
+ return ((bool)(this["ShowConsoleWindowInGUIMode"]));
+ }
+ set {
+ this["ShowConsoleWindowInGUIMode"] = value;
+ }
+ }
}
}
diff --git a/OngekiFumenEditor/Properties/ProgramSetting.settings b/OngekiFumenEditor/Properties/ProgramSetting.settings
index a5662037..f1ea3cf3 100644
--- a/OngekiFumenEditor/Properties/ProgramSetting.settings
+++ b/OngekiFumenEditor/Properties/ProgramSetting.settings
@@ -41,5 +41,8 @@
True
+
+ False
+
\ No newline at end of file