diff --git a/DesktopUI2/DesktopUI2/Models/ConfigManager.cs b/DesktopUI2/DesktopUI2/Models/ConfigManager.cs index e606549027..115219640f 100644 --- a/DesktopUI2/DesktopUI2/Models/ConfigManager.cs +++ b/DesktopUI2/DesktopUI2/Models/ConfigManager.cs @@ -25,12 +25,11 @@ public static Config Load() var oldConfig = ConfigStorage.GetObject("config"); var newConfig = ConfigStorage.GetObject("configDUI"); - if (!string.IsNullOrEmpty(newConfig)) - { - return JsonConvert.DeserializeObject(newConfig); - } + Config deserializedConfig = !string.IsNullOrWhiteSpace(newConfig) + ? JsonConvert.DeserializeObject(newConfig) + : JsonConvert.DeserializeObject(oldConfig); - return JsonConvert.DeserializeObject(oldConfig); + return deserializedConfig; } catch (Exception e) { } return new Config(); @@ -45,5 +44,5 @@ public class Config public bool DarkTheme { set; get; } public bool OneClickMode { set; get; } = true; public bool ShowImportExportAlert { set; get; } = true; - public bool UseFe2 { set; get; } = false; + public bool UseFe2 { set; get; } } diff --git a/DesktopUI2/DesktopUI2/Styles/Button.xaml b/DesktopUI2/DesktopUI2/Styles/Button.xaml index 9a14d3b731..53e1b67a5d 100644 --- a/DesktopUI2/DesktopUI2/Styles/Button.xaml +++ b/DesktopUI2/DesktopUI2/Styles/Button.xaml @@ -65,9 +65,6 @@