Skip to content

Commit

Permalink
Add More Keys, Edit theme.
Browse files Browse the repository at this point in the history
  • Loading branch information
xM4ddy committed May 17, 2024
1 parent 476000f commit 8397e09
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down Expand Up @@ -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":
Expand Down

0 comments on commit 8397e09

Please sign in to comment.