set the default theme setting

On the initial start of a fresh install, if the options are opened the theme is then set from an empty string to the default. This causes the user to see the "must restart app" dialog when closing the options.

This only occurs on the initial run of the app. If the app is closed and run again, the theme will have been set.
This commit is contained in:
BlueBlock
2023-02-03 14:34:38 -05:00
parent 324054b9d7
commit 553bbef45f
2 changed files with 3 additions and 3 deletions

View File

@@ -12,7 +12,7 @@ namespace mRemoteNG.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.1.0.0")]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.4.0.0")]
internal sealed partial class OptionsThemePage : global::System.Configuration.ApplicationSettingsBase {
private static OptionsThemePage defaultInstance = ((OptionsThemePage)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new OptionsThemePage())));
@@ -37,7 +37,7 @@ namespace mRemoteNG.Properties {
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("")]
[global::System.Configuration.DefaultSettingValueAttribute("vs2015Light")]
public string ThemeName {
get {
return ((string)(this["ThemeName"]));

View File

@@ -6,7 +6,7 @@
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="ThemeName" Type="System.String" Scope="User">
<Value Profile="(Default)" />
<Value Profile="(Default)">vs2015Light</Value>
</Setting>
<Setting Name="cbThemePageInOptionMenu" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>