From 46e0656fe91bcb2609ce9f2433e84aaf1a47bbee Mon Sep 17 00:00:00 2001 From: Roy van Kaathoven Date: Tue, 18 Mar 2014 18:20:51 +0100 Subject: [PATCH] Save StartWoxOnSystemStartup setting --- Wox/SettingWindow.xaml.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Wox/SettingWindow.xaml.cs b/Wox/SettingWindow.xaml.cs index 79a7778fc..0dab8ffd9 100644 --- a/Wox/SettingWindow.xaml.cs +++ b/Wox/SettingWindow.xaml.cs @@ -46,6 +46,7 @@ namespace Wox CommonStorage.Instance.Save(); }; + foreach (string theme in LoadAvailableThemes()) { string themeName = theme.Substring(theme.LastIndexOf('\\') + 1).Replace(".xaml", ""); @@ -118,6 +119,8 @@ namespace Wox private void CbStartWithWindows_OnChecked(object sender, RoutedEventArgs e) { CreateStartupFolderShortcut(); + CommonStorage.Instance.UserSetting.StartWoxOnSystemStartup = true; + CommonStorage.Instance.Save(); } private void CbStartWithWindows_OnUnchecked(object sender, RoutedEventArgs e) @@ -126,6 +129,9 @@ namespace Wox { File.Delete(woxLinkPath); } + + CommonStorage.Instance.UserSetting.StartWoxOnSystemStartup = false; + CommonStorage.Instance.Save(); } private void CreateStartupFolderShortcut()