From f720cc73256415a18a502e5c5a8204e536ac7b3e Mon Sep 17 00:00:00 2001 From: WeeXnes Date: Mon, 28 Nov 2022 19:06:57 +0100 Subject: [PATCH] re-added start menu shortcut button --- WeeXnes/App.xaml.cs | 4 - WeeXnes/Core/SaveSettingsHandler.cs | 9 --- WeeXnes/Views/Settings/SettingsView.xaml | 23 +++++- WeeXnes/Views/Settings/SettingsView.xaml.cs | 88 +++++++-------------- 4 files changed, 50 insertions(+), 74 deletions(-) diff --git a/WeeXnes/App.xaml.cs b/WeeXnes/App.xaml.cs index c20cec4..383dc18 100644 --- a/WeeXnes/App.xaml.cs +++ b/WeeXnes/App.xaml.cs @@ -36,10 +36,6 @@ namespace WeeXnes Convert.ToBoolean(SettingsView.Data.settingsFile.GetValue( SaveSettingsHandler.Data.KeyManager.Section, SaveSettingsHandler.Data.KeyManager.CensorKeys)); - SettingsView.Data.Autostart.Value = - Convert.ToBoolean(SettingsView.Data.settingsFile.GetValue( - SaveSettingsHandler.Data.General.Section, - SaveSettingsHandler.Data.General.Autostart)); } diff --git a/WeeXnes/Core/SaveSettingsHandler.cs b/WeeXnes/Core/SaveSettingsHandler.cs index 7aa0a27..fa9e5b8 100644 --- a/WeeXnes/Core/SaveSettingsHandler.cs +++ b/WeeXnes/Core/SaveSettingsHandler.cs @@ -12,7 +12,6 @@ namespace WeeXnes.Core public static class General { public const string Section = "GENERAL"; - public const string Autostart = "Autostart"; } public static class KeyManager { @@ -43,14 +42,6 @@ namespace WeeXnes.Core KeyManagerView.Data.censorKeys.Value.ToString() ); }; - SettingsView.Data.Autostart.ValueChanged += () => - { - SettingsView.Data.settingsFile.SetValue( - Data.General.Section, - Data.General.Autostart, - SettingsView.Data.Autostart.Value.ToString() - ); - }; } } } \ No newline at end of file diff --git a/WeeXnes/Views/Settings/SettingsView.xaml b/WeeXnes/Views/Settings/SettingsView.xaml index c63844f..5459bcf 100644 --- a/WeeXnes/Views/Settings/SettingsView.xaml +++ b/WeeXnes/Views/Settings/SettingsView.xaml @@ -29,6 +29,18 @@ Name="DialogUpdate" ButtonLeftClick="DialogUpdate_OnButtonLeftClick" ButtonRightClick="DialogUpdate_OnButtonRightClick"/> + + + + + @@ -39,8 +51,15 @@ - + +