Skip to content

Commit

Permalink
Fixed tweak to hide "Learn about this picture" icon on Desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
alexibraimov committed Jul 28, 2023
1 parent 0b3c2a1 commit 31c3e27
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/SophiApp/Customisations/CustomisationConstants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ public static extern bool ShowWindowAsync(IntPtr hWnd, int nCmdShow)
internal const string DELEGATION_CONSOLE_VALUE = "{00000000-0000-0000-0000-000000000000}";
internal const string DELEGATION_TERMINAL = "DelegationTerminal";
internal const string DESKTOP_ICON_THIS_COMPUTER = "{20D04FE0-3AEA-1069-A2D8-08002B30309D}";
internal const string LEARN_ABOUT_THIS_PICTURE = "{2cc5ca98-6485-489a-920e-b3e88a6ccce3}";
internal const string DESKTOP_ICON_LEARN_ABOUT_THIS_PICTURE = "{2cc5ca98-6485-489a-920e-b3e88a6ccce3}";
internal const string DIAG_TRACK_PATH = @"SOFTWARE\Microsoft\Windows\CurrentVersion\Diagnostics\DiagTrack";
internal const byte DIALOG_COMPACT_VALUE = 0;
internal const byte DIALOG_DETAILED_VALUE = 1;
Expand Down
4 changes: 2 additions & 2 deletions src/SophiApp/Customisations/CustomisationOs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -573,11 +573,11 @@ public static void _270(bool IsChecked)
{
if (IsChecked)
{
RegHelper.SetValue(RegistryHive.CurrentUser, START_PANEL_EXPLORER_PATH, LEARN_ABOUT_THIS_PICTURE, ENABLED_VALUE, RegistryValueKind.DWord);
RegHelper.DeleteKey(RegistryHive.CurrentUser, START_PANEL_EXPLORER_PATH, DESKTOP_ICON_LEARN_ABOUT_THIS_PICTURE, false);
return;
}

RegHelper.DeleteKey(RegistryHive.CurrentUser, START_PANEL_EXPLORER_PATH, LEARN_ABOUT_THIS_PICTURE, false);
RegHelper.SetValue(RegistryHive.CurrentUser, START_PANEL_EXPLORER_PATH, DESKTOP_ICON_LEARN_ABOUT_THIS_PICTURE, ENABLED_VALUE, RegistryValueKind.DWord);
}

public static void _300(bool IsChecked) => RegHelper.SetValue(RegistryHive.CurrentUser,
Expand Down
2 changes: 1 addition & 1 deletion src/SophiApp/Customisations/CustomisationStatus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ public static bool _269()
return showDynamicContent && dynamicSearchBox;
}

public static bool _270() => RegHelper.GetNullableIntValue(RegistryHive.CurrentUser, START_PANEL_EXPLORER_PATH, LEARN_ABOUT_THIS_PICTURE) != ENABLED_VALUE;
public static bool _270() => RegHelper.GetNullableIntValue(RegistryHive.CurrentUser, START_PANEL_EXPLORER_PATH, DESKTOP_ICON_LEARN_ABOUT_THIS_PICTURE) != ENABLED_VALUE;

public static bool _300() => RegHelper.GetNullableIntValue(RegistryHive.CurrentUser, STORAGE_POLICY_PATH, STORAGE_POLICY_01)
.HasNullOrValue(DISABLED_VALUE)
Expand Down

0 comments on commit 31c3e27

Please sign in to comment.