From 553bbef45f7a15786279792bab7b945dfa737e65 Mon Sep 17 00:00:00 2001 From: BlueBlock Date: Fri, 3 Feb 2023 14:34:38 -0500 Subject: [PATCH] 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. --- mRemoteNG/Properties/OptionsThemePage.Designer.cs | 4 ++-- mRemoteNG/Properties/OptionsThemePage.settings | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mRemoteNG/Properties/OptionsThemePage.Designer.cs b/mRemoteNG/Properties/OptionsThemePage.Designer.cs index 888caea8c..15474d177 100644 --- a/mRemoteNG/Properties/OptionsThemePage.Designer.cs +++ b/mRemoteNG/Properties/OptionsThemePage.Designer.cs @@ -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"])); diff --git a/mRemoteNG/Properties/OptionsThemePage.settings b/mRemoteNG/Properties/OptionsThemePage.settings index 5d442d24b..a38ab0132 100644 --- a/mRemoteNG/Properties/OptionsThemePage.settings +++ b/mRemoteNG/Properties/OptionsThemePage.settings @@ -6,7 +6,7 @@ False - + vs2015Light True