diff --git a/MainWindow.xaml.cs b/MainWindow.xaml.cs index 4f737d7..34ca32e 100644 --- a/MainWindow.xaml.cs +++ b/MainWindow.xaml.cs @@ -120,8 +120,6 @@ private static bool CreateKey(string loc, string key) private static void ToggleOptions(string checkboxName, bool enable) { - int value = Convert.ToInt32(!enable); - switch (checkboxName) { case "cb1": @@ -158,7 +156,7 @@ private static void ToggleOptions(string checkboxName, bool enable) Registry.SetValue("HKEY_CURRENT_USER\\" + cur_ver + "Notifications\\Settings\\Windows.ActionCenter.SmartOptOut", "Enabled", Convert.ToInt32(!enable)); break; case "cb11": - Registry.SetValue("HKEY_CURRENT_USER\\Software\\Policies\\Microsoft\\Windows\\Explorer", "DisableSearchBoxSuggestions", Convert.ToInt32(enable)); // Inverted + Registry.SetValue("HKEY_CURRENT_USER\\Software\\Policies\\Microsoft\\Windows\\Explorer", "DisableSearchBoxSuggestions", Convert.ToInt32(enable)); // <- Inverted Registry.SetValue("HKEY_CURRENT_USER\\" + cur_ver + "Search", "BingSearchEnabled", Convert.ToInt32(!enable)); break; case "cb12":