Skip to content

Commit

Permalink
Removed ID 927
Browse files Browse the repository at this point in the history
  • Loading branch information
farag2 committed Sep 21, 2022
1 parent 9d1ad70 commit d13c162
Show file tree
Hide file tree
Showing 13 changed files with 0 additions and 192 deletions.
9 changes: 0 additions & 9 deletions SophiApp/SophiApp/Customisations/CustomisationConstants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -569,15 +569,6 @@ public static extern bool ShowWindowAsync(IntPtr hWnd, int nCmdShow)
internal const string _926_TERMINAL_CONTEXT_PATH = @"SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked";
internal const string _926_TERMINAL_OPEN_CONTEXT = "{9F156763-7844-4DC4-B2B1-901F640F5155}";
internal const string _926_WINDOWS_TERMINAL = "WindowsTerminal";
internal const string _927_BACKGROUND_SHELL_COMMAND_PATH = @"Directory\Background\shell\runas\command";
internal const string _927_BACKGROUND_SHELL_RUNAS_PATH = @"Directory\Background\shell\runas";
internal const string _927_DIRECTORY_SHELL_COMMAND_PATH = @"Directory\shell\runas\command";
internal const string _927_DIRECTORY_SHELL_RUNAS_PATH = @"Directory\shell\runas";
internal const string _927_NO_WORKING_DIR = "NoWorkingDirectory";
internal const string _927_TERMINAL_CONTEXT_MENU = @"wt.exe -d ""%1""";
internal const string _927_TERMINAL_ICON = "Icon";
internal const string _927_TERMINAL_ICON_VALUE = "imageres.dll,73";
internal const string _927_TERMINAL_RUNAS_ADMIN = @"wt.exe -d ""%V\.""";
internal const string _928_WIN10_CONTEXT_MENU_PATH = @"Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32";
internal const string ACTION_CENTER_APPX_PATH = @"SOFTWARE\Microsoft\Windows\CurrentVersion\Notifications\Settings\windows.immersivecontrolpanel_cw5n1h2txyewy!microsoft.windows.immersivecontrolpanel";
internal const string ADMIN_PROMPT = "ConsentPromptBehaviorAdmin";
Expand Down
23 changes: 0 additions & 23 deletions SophiApp/SophiApp/Customisations/CustomisationOs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1528,29 +1528,6 @@ public static void _926(bool IsChecked)
RegHelper.SetValue(RegistryHive.LocalMachine, _926_TERMINAL_CONTEXT_PATH, _926_TERMINAL_OPEN_CONTEXT, _926_WINDOWS_TERMINAL, RegistryValueKind.String);
}

public static void _927(bool IsChecked)
{
if (IsChecked)
{
var terminalOpenIsAdmin = Application.Current.FindResource("WindowsTerminal.OpenIsAdmin") as string;

RegHelper.SetValue(RegistryHive.ClassesRoot, _927_BACKGROUND_SHELL_RUNAS_PATH, null, terminalOpenIsAdmin, RegistryValueKind.String);
RegHelper.SetValue(RegistryHive.ClassesRoot, _927_BACKGROUND_SHELL_RUNAS_PATH, _927_TERMINAL_ICON, _927_TERMINAL_ICON_VALUE, RegistryValueKind.String);
RegHelper.SetValue(RegistryHive.ClassesRoot, _927_BACKGROUND_SHELL_RUNAS_PATH, _927_NO_WORKING_DIR, string.Empty, RegistryValueKind.String);
RegHelper.SetValue(RegistryHive.ClassesRoot, _927_BACKGROUND_SHELL_COMMAND_PATH, null, _927_TERMINAL_RUNAS_ADMIN, RegistryValueKind.String);

RegHelper.SetValue(RegistryHive.ClassesRoot, _927_DIRECTORY_SHELL_RUNAS_PATH, null, terminalOpenIsAdmin, RegistryValueKind.String);
RegHelper.SetValue(RegistryHive.ClassesRoot, _927_DIRECTORY_SHELL_RUNAS_PATH, _927_TERMINAL_ICON, _927_TERMINAL_ICON_VALUE, RegistryValueKind.String);
RegHelper.SetValue(RegistryHive.ClassesRoot, _927_DIRECTORY_SHELL_RUNAS_PATH, _927_NO_WORKING_DIR, String.Empty, RegistryValueKind.String);
RegHelper.SetValue(RegistryHive.ClassesRoot, _927_DIRECTORY_SHELL_COMMAND_PATH, null, _927_TERMINAL_CONTEXT_MENU, RegistryValueKind.String);

return;
}

RegHelper.DeleteSubKeyTree(RegistryHive.ClassesRoot, _927_BACKGROUND_SHELL_RUNAS_PATH);
RegHelper.DeleteSubKeyTree(RegistryHive.ClassesRoot, _927_DIRECTORY_SHELL_RUNAS_PATH);
}

public static void _928(bool IsChecked)
{
if (IsChecked)
Expand Down
4 changes: 0 additions & 4 deletions SophiApp/SophiApp/Customisations/CustomisationStatus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -673,10 +673,6 @@ public static bool _926() => UwpHelper.PackageExist(UWP_WINDOWS_TERMINAL)
? RegHelper.KeyExist(RegistryHive.LocalMachine, _926_TERMINAL_CONTEXT_PATH, _926_TERMINAL_OPEN_CONTEXT).Invert()
: throw new UwpAppNotFoundException(UWP_WINDOWS_TERMINAL);

public static bool _927() => UwpHelper.PackageExist(UWP_WINDOWS_TERMINAL)
? RegHelper.GetStringValue(RegistryHive.ClassesRoot, _927_DIRECTORY_SHELL_COMMAND_PATH, null) == _927_TERMINAL_CONTEXT_MENU
: throw new UwpAppNotFoundException(UWP_WINDOWS_TERMINAL);

public static bool _928() => RegHelper.GetStringValue(RegistryHive.CurrentUser, _928_WIN10_CONTEXT_MENU_PATH, null) == string.Empty;

public static bool _929() => RegHelper.KeyExist(RegistryHive.LocalMachine, SHELL_EXT_BLOCKED_PATH, CONTEXT_MENU_SHARE_GUID).Invert();
Expand Down
14 changes: 0 additions & 14 deletions SophiApp/SophiApp/Localizations/UIData_CZ.json
Original file line number Diff line number Diff line change
Expand Up @@ -2714,20 +2714,6 @@
"Windows10Supported": true,
"Windows11Supported": true
},
{
"Id": 927,
"Header": {
"CZ": "Zobrazit položku \"Otevřít v terminálu Windows\" (správce) v kontextové nabídce Plocha a složky"
},
"Description": {
"CZ": ""
},
"Type": "CheckBox",
"Tag": "ContextMenu",
"ViewId": 927,
"Windows10Supported": true,
"Windows11Supported": true
},
{
"Id": 928,
"Header": {
Expand Down
14 changes: 0 additions & 14 deletions SophiApp/SophiApp/Localizations/UIData_DE.json
Original file line number Diff line number Diff line change
Expand Up @@ -2714,20 +2714,6 @@
"Windows10Supported": true,
"Windows11Supported": true
},
{
"Id": 927,
"Header": {
"DE": "Im Ordnerkontextmenü \"In Windows Terminal öffnen\" als (Admin) anzeigen"
},
"Description": {
"DE": ""
},
"Type": "CheckBox",
"Tag": "ContextMenu",
"ViewId": 927,
"Windows10Supported": true,
"Windows11Supported": true
},
{
"Id": 928,
"Header": {
Expand Down
14 changes: 0 additions & 14 deletions SophiApp/SophiApp/Localizations/UIData_EN.json
Original file line number Diff line number Diff line change
Expand Up @@ -2714,20 +2714,6 @@
"Windows10Supported": true,
"Windows11Supported": true
},
{
"Id": 927,
"Header": {
"EN": "Show the \"Open in Windows Terminal\" (Admin) item in the Desktop and folders context menu"
},
"Description": {
"EN": ""
},
"Type": "CheckBox",
"Tag": "ContextMenu",
"ViewId": 927,
"Windows10Supported": true,
"Windows11Supported": true
},
{
"Id": 928,
"Header": {
Expand Down
14 changes: 0 additions & 14 deletions SophiApp/SophiApp/Localizations/UIData_FR.json
Original file line number Diff line number Diff line change
Expand Up @@ -2714,20 +2714,6 @@
"Windows10Supported": true,
"Windows11Supported": true
},
{
"Id": 927,
"Header": {
"FR": "Affiche l'option \"Ouvrir dans Windows Terminal\" (Admin) dans le menu contextuel du Bureau et des dossiers"
},
"Description": {
"FR": ""
},
"Type": "CheckBox",
"Tag": "ContextMenu",
"ViewId": 927,
"Windows10Supported": true,
"Windows11Supported": true
},
{
"Id": 928,
"Header": {
Expand Down
14 changes: 0 additions & 14 deletions SophiApp/SophiApp/Localizations/UIData_IT.json
Original file line number Diff line number Diff line change
Expand Up @@ -2714,20 +2714,6 @@
"Windows10Supported": true,
"Windows11Supported": true
},
{
"Id": 927,
"Header": {
"IT": "Mostra l'opzione \"Apri in Windows Terminal\" (Admin) Nel menu contestuale del desktop e delle cartelle"
},
"Description": {
"IT": ""
},
"Type": "CheckBox",
"Tag": "ContextMenu",
"ViewId": 927,
"Windows10Supported": true,
"Windows11Supported": true
},
{
"Id": 928,
"Header": {
Expand Down
14 changes: 0 additions & 14 deletions SophiApp/SophiApp/Localizations/UIData_RU.json
Original file line number Diff line number Diff line change
Expand Up @@ -2714,20 +2714,6 @@
"Windows10Supported": true,
"Windows11Supported": true
},
{
"Id": 927,
"Header": {
"RU": "Отображать пункт \"Открыть в Терминале Windows\" (Администратор) в контекстном меню папок"
},
"Description": {
"RU": ""
},
"Type": "CheckBox",
"Tag": "ContextMenu",
"ViewId": 927,
"Windows10Supported": true,
"Windows11Supported": true
},
{
"Id": 928,
"Header": {
Expand Down
14 changes: 0 additions & 14 deletions SophiApp/SophiApp/Localizations/UIData_TR.json
Original file line number Diff line number Diff line change
Expand Up @@ -2714,20 +2714,6 @@
"Windows10Supported": true,
"Windows11Supported": true
},
{
"Id": 927,
"Header": {
"TR": "Masaüstü ve klasörler bağlam menüsünde \"Windows Terminalinde Aç\" (Yönetici) öğesini göster"
},
"Description": {
"TR": ""
},
"Type": "CheckBox",
"Tag": "ContextMenu",
"ViewId": 927,
"Windows10Supported": true,
"Windows11Supported": true
},
{
"Id": 928,
"Header": {
Expand Down
14 changes: 0 additions & 14 deletions SophiApp/SophiApp/Localizations/UIData_UA.json
Original file line number Diff line number Diff line change
Expand Up @@ -2714,20 +2714,6 @@
"Windows10Supported": true,
"Windows11Supported": true
},
{
"Id": 927,
"Header": {
"UA": "Відображати пункт \"Відкрити в Терміналі Windows\" (Адміністратор) у контекстному меню папок"
},
"Description": {
"UA": ""
},
"Type": "CheckBox",
"Tag": "ContextMenu",
"ViewId": 927,
"Windows10Supported": true,
"Windows11Supported": true
},
{
"Id": 928,
"Header": {
Expand Down
14 changes: 0 additions & 14 deletions SophiApp/SophiApp/Localizations/UIData_zh_CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -2714,20 +2714,6 @@
"Windows10Supported": true,
"Windows11Supported": true
},
{
"Id": 927,
"Header": {
"zh_CN": "在桌面和文件夹上下文菜单中显示\"在 Windows 终端中打开\"(管理员)项"
},
"Description": {
"zh_CN": ""
},
"Type": "CheckBox",
"Tag": "ContextMenu",
"ViewId": 927,
"Windows10Supported": true,
"Windows11Supported": true
},
{
"Id": 928,
"Header": {
Expand Down
30 changes: 0 additions & 30 deletions SophiApp/SophiApp/Resources/UIData.json
Original file line number Diff line number Diff line change
Expand Up @@ -6074,36 +6074,6 @@
"Windows10Supported": true,
"Windows11Supported": true
},
{
"Id": 927,
"Header": {
"EN": "Show the \"Open in Windows Terminal\" (Admin) item in the Desktop and folders context menu",
"RU": "Отображать пункт \"Открыть в Терминале Windows\" (Администратор) в контекстном меню папок",
"DE": "Im Ordnerkontextmenü \"In Windows Terminal öffnen\" als (Admin) anzeigen",
"UA": "Відображати пункт \"Відкрити в Терміналі Windows\" (Адміністратор) у контекстному меню папок",
"IT": "Mostra l'opzione \"Apri in Windows Terminal\" (Admin) Nel menu contestuale del desktop e delle cartelle",
"TR": "Masaüstü ve klasörler bağlam menüsünde \"Windows Terminalinde Aç\" (Yönetici) öğesini göster",
"CZ": "Zobrazit položku \"Otevřít v terminálu Windows\" (správce) v kontextové nabídce Plocha a složky",
"FR": "Affiche l'option \"Ouvrir dans Windows Terminal\" (Admin) dans le menu contextuel du Bureau et des dossiers",
"zh_CN": "在桌面和文件夹上下文菜单中显示\"在 Windows 终端中打开\"(管理员)项"
},
"Description": {
"EN": "",
"RU": "",
"DE": "",
"UA": "",
"IT": "",
"TR": "",
"CZ": "",
"FR": "",
"zh_CN": ""
},
"Type": "CheckBox",
"Tag": "ContextMenu",
"ViewId": 927,
"Windows10Supported": true,
"Windows11Supported": true
},
{
"Id": 928,
"Header": {
Expand Down

0 comments on commit d13c162

Please sign in to comment.