diff --git a/Wox/Languages/en.xaml b/Wox/Languages/en.xaml index 35d0a80db1..ead825b99a 100644 --- a/Wox/Languages/en.xaml +++ b/Wox/Languages/en.xaml @@ -26,6 +26,7 @@ Ignore hotkeys if window is fullscreen Python Directory Select + Auto Updates diff --git a/Wox/Languages/zh-cn.xaml b/Wox/Languages/zh-cn.xaml index b44a0c111d..61bbb1be78 100644 --- a/Wox/Languages/zh-cn.xaml +++ b/Wox/Languages/zh-cn.xaml @@ -25,6 +25,7 @@ 最大结果显示个数 全屏模式下忽略热键 Python 路径 + 自动更新 插件 diff --git a/Wox/SettingWindow.xaml b/Wox/SettingWindow.xaml index aa3180eba6..5decc31328 100644 --- a/Wox/SettingWindow.xaml +++ b/Wox/SettingWindow.xaml @@ -37,6 +37,9 @@ + + + diff --git a/Wox/SettingWindow.xaml.cs b/Wox/SettingWindow.xaml.cs index 92c7c4f917..cf7da10366 100644 --- a/Wox/SettingWindow.xaml.cs +++ b/Wox/SettingWindow.xaml.cs @@ -95,6 +95,17 @@ namespace Wox _settings.IgnoreHotkeysOnFullscreen = false; }; + AutoUpdatesCheckBox.Checked += (o, e) => + { + _settings.AutoUpdates = true; + }; + + + AutoUpdatesCheckBox.Unchecked += (o, e) => + { + _settings.AutoUpdates = false; + }; + cbStartWithWindows.IsChecked = CheckApplicationIsStartupWithWindow(); comboMaxResultsToShow.SelectionChanged += (o, e) => @@ -107,6 +118,7 @@ namespace Wox cbDontPromptUpdateMsg.IsChecked = _settings.DontPromptUpdateMsg; cbRememberLastLocation.IsChecked = _settings.RememberLastLaunchLocation; cbIgnoreHotkeysOnFullscreen.IsChecked = _settings.IgnoreHotkeysOnFullscreen; + AutoUpdatesCheckBox.IsChecked = _settings.AutoUpdates; LoadLanguages(); comboMaxResultsToShow.ItemsSource = Enumerable.Range(2, 16); @@ -639,7 +651,7 @@ namespace Wox var id = pair.Metadata.ID; if (checkBox.IsChecked != null) { - var disabled = (bool) checkBox.IsChecked; + var disabled = (bool)checkBox.IsChecked; _settings.PluginSettings.Plugins[id].Disabled = disabled; } else