diff --git a/Wrapper/Config/config_Windows_11.json b/Wrapper/Config/config_Windows_11.json index e9c70ab5..8d3343ad 100644 --- a/Wrapper/Config/config_Windows_11.json +++ b/Wrapper/Config/config_Windows_11.json @@ -2136,7 +2136,7 @@ "Region": "Context menu", "Control": "cmb", "Required": "false", - "Function": "PrintCMDContext", + "Function": "EditWithClipchampContext", "Arg": { "Zero": { "Tag": "Hide" @@ -2153,7 +2153,7 @@ "Region": "Context menu", "Control": "cmb", "Required": "false", - "Function": "IncludeInLibraryContext", + "Function": "PrintCMDContext", "Arg": { "Zero": { "Tag": "Hide" @@ -2170,7 +2170,7 @@ "Region": "Context menu", "Control": "cmb", "Required": "false", - "Function": "SendToContext", + "Function": "IncludeInLibraryContext", "Arg": { "Zero": { "Tag": "Hide" @@ -2187,7 +2187,7 @@ "Region": "Context menu", "Control": "cmb", "Required": "false", - "Function": "CompressedFolderNewContext", + "Function": "SendToContext", "Arg": { "Zero": { "Tag": "Hide" @@ -2204,6 +2204,23 @@ "Region": "Context menu", "Control": "cmb", "Required": "false", + "Function": "CompressedFolderNewContext", + "Arg": { + "Zero": { + "Tag": "Hide" + }, + "One": { + "Tag": "Show" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Id": 1210, + "Region": "Context menu", + "Control": "cmb", + "Required": "false", "Function": "MultipleInvokeContext", "Arg": { "Zero": { @@ -2217,7 +2234,7 @@ "WindowsDefault": "One" }, { - "Id": 1210, + "Id": 1211, "Region": "Context menu", "Control": "cmb", "Required": "false", @@ -2234,7 +2251,7 @@ "WindowsDefault": "One" }, { - "Id": 1211, + "Id": 1212, "Region": "Context menu", "Control": "cmb", "Required": "false", @@ -2251,7 +2268,7 @@ "WindowsDefault": "Show" }, { - "Id": 1212, + "Id": 1213, "Region": "Context menu", "Control": "cmb", "Required": "false", @@ -2268,7 +2285,7 @@ "WindowsDefault": "One" }, { - "Id": 1213, + "Id": 1214, "Region": "Context menu", "Control": "cmb", "Required": "false", diff --git a/Wrapper/Localizations/de-DE/tooltip_Windows_11.json b/Wrapper/Localizations/de-DE/tooltip_Windows_11.json index 89ae6780..0b799579 100644 --- a/Wrapper/Localizations/de-DE/tooltip_Windows_11.json +++ b/Wrapper/Localizations/de-DE/tooltip_Windows_11.json @@ -1887,36 +1887,21 @@ { "Id": 1205, "Region": "Context menu", - "Function": "EditWithPhotosContext", + "Function": "EditWithClipchampContext", "Arg": { "Zero": { "Tag": "Hide", - "ToolTip": "Eintrag \"Mit Fotos bearbeiten\" im Kontextmenü von Mediendateien ausblenden" + "ToolTip": "Eintrag \"Mit Clipchamp bearbeiten\" im Kontextmenü ausblenden" }, "One": { "Tag": "Show", - "ToolTip": "Eintrag \"Mit Fotos bearbeiten\" im Kontextmenü von Mediendateien aunzeigen (Standardeinstellung)" + "ToolTip": "Eintrag \"Mit Clipchamp bearbeiten\" im Kontextmenü anzeigen (Standardeinstellung)" } } }, { "Id": 1206, "Region": "Context menu", - "Function": "CreateANewVideoContext", - "Arg": { - "Zero": { - "Tag": "Hide", - "ToolTip": "Eintrag \"Neues Video erstellen\" im Kontextmenü der Mediendateien ausblenden" - }, - "One": { - "Tag": "Show", - "ToolTip": "Eintrag \"Neues Video erstellen\" im Kontextmenü der Mediendateien aunzeigen (Standardeinstellung)" - } - } - }, - { - "Id": 1207, - "Region": "Context menu", "Function": "PrintCMDContext", "Arg": { "Zero": { @@ -1930,7 +1915,7 @@ } }, { - "Id": 1208, + "Id": 1207, "Region": "Context menu", "Function": "IncludeInLibraryContext", "Arg": { @@ -1945,7 +1930,7 @@ } }, { - "Id": 1209, + "Id": 1208, "Region": "Context menu", "Function": "SendToContext", "Arg": { @@ -1960,7 +1945,7 @@ } }, { - "Id": 1210, + "Id": 1209, "Region": "Context menu", "Function": "CompressedFolderNewContext", "Arg": { @@ -1975,7 +1960,7 @@ } }, { - "Id": 1211, + "Id": 1210, "Region": "Context menu", "Function": "MultipleInvokeContext", "Arg": { @@ -1990,7 +1975,7 @@ } }, { - "Id": 1212, + "Id": 1211, "Region": "Context menu", "Function": "UseStoreOpenWith", "Arg": { @@ -2005,7 +1990,7 @@ } }, { - "Id": 1213, + "Id": 1212, "Region": "Context menu", "Function": "OpenWindowsTerminalContext", "Arg": { @@ -2020,7 +2005,7 @@ } }, { - "Id": 1214, + "Id": 1213, "Region": "Context menu", "Function": "OpenWindowsTerminalAdminContext", "Arg": { @@ -2035,7 +2020,7 @@ } }, { - "Id": 1215, + "Id": 1214, "Region": "Context menu", "Function": "Windows10ContextMenu", "Arg": { diff --git a/Wrapper/Localizations/en-US/tooltip_Windows_11.json b/Wrapper/Localizations/en-US/tooltip_Windows_11.json index e6b3057e..56a1b80b 100644 --- a/Wrapper/Localizations/en-US/tooltip_Windows_11.json +++ b/Wrapper/Localizations/en-US/tooltip_Windows_11.json @@ -1887,36 +1887,21 @@ { "Id": 1205, "Region": "Context menu", - "Function": "EditWithPhotosContext", + "Function": "EditWithClipchampContext", "Arg": { "Zero": { "Tag": "Hide", - "ToolTip": "Hide the \"Edit with Photos\" item from the media files context menu" + "ToolTip": "Hide the \"Edit with Clipchamp\" item from the media files context menu" }, "One": { "Tag": "Show", - "ToolTip": "Show the \"Edit with Photos\" item in the media files context menu (default value)" + "ToolTip": "Show the \"Edit with Clipchamp\" item in the media files context menu (default value)" } } }, { "Id": 1206, "Region": "Context menu", - "Function": "CreateANewVideoContext", - "Arg": { - "Zero": { - "Tag": "Hide", - "ToolTip": "Hide the \"Create a new video\" item in the media files context menu" - }, - "One": { - "Tag": "Show", - "ToolTip": "Show the \"Create a new video\" item in the media files context menu (default value)" - } - } - }, - { - "Id": 1207, - "Region": "Context menu", "Function": "PrintCMDContext", "Arg": { "Zero": { @@ -1930,7 +1915,7 @@ } }, { - "Id": 1208, + "Id": 1207, "Region": "Context menu", "Function": "IncludeInLibraryContext", "Arg": { @@ -1945,7 +1930,7 @@ } }, { - "Id": 1209, + "Id": 1208, "Region": "Context menu", "Function": "SendToContext", "Arg": { @@ -1960,7 +1945,7 @@ } }, { - "Id": 1210, + "Id": 1209, "Region": "Context menu", "Function": "CompressedFolderNewContext", "Arg": { @@ -1975,7 +1960,7 @@ } }, { - "Id": 1211, + "Id": 1210, "Region": "Context menu", "Function": "MultipleInvokeContext", "Arg": { @@ -1990,7 +1975,7 @@ } }, { - "Id": 1212, + "Id": 1211, "Region": "Context menu", "Function": "UseStoreOpenWith", "Arg": { @@ -2005,7 +1990,7 @@ } }, { - "Id": 1213, + "Id": 1212, "Region": "Context menu", "Function": "OpenWindowsTerminalContext", "Arg": { @@ -2020,7 +2005,7 @@ } }, { - "Id": 1214, + "Id": 1213, "Region": "Context menu", "Function": "OpenWindowsTerminalAdminContext", "Arg": { @@ -2035,7 +2020,7 @@ } }, { - "Id": 1215, + "Id": 1214, "Region": "Context menu", "Function": "Windows10ContextMenu", "Arg": { diff --git a/Wrapper/Localizations/ru-RU/tooltip_Windows_11.json b/Wrapper/Localizations/ru-RU/tooltip_Windows_11.json index d44ab767..98e7a55f 100644 --- a/Wrapper/Localizations/ru-RU/tooltip_Windows_11.json +++ b/Wrapper/Localizations/ru-RU/tooltip_Windows_11.json @@ -1887,36 +1887,21 @@ { "Id": 1205, "Region": "Context menu", - "Function": "EditWithPhotosContext", + "Function": "EditWithClipchampContext", "Arg": { "Zero": { "Tag": "Hide", - "ToolTip": "Скрыть пункт \"Изменить с помощью приложения \"Фотографии\"\" из контекстного меню медиа-файлов" + "ToolTip": "Скрыть пункт \"Редактировать в Climpchamp\" из контекстного меню медиа-файлов" }, "One": { "Tag": "Show", - "ToolTip": "Показывать пункт \"Изменить с помощью приложения \"Фотографии\"\" в контекстном меню медиа-файлов (значение по умолчанию)" + "ToolTip": "Показывать пункт \"Редактировать в Climpchamp\" в контекстном меню медиа-файлов (значение по умолчанию)" } } }, { "Id": 1206, "Region": "Context menu", - "Function": "CreateANewVideoContext", - "Arg": { - "Zero": { - "Tag": "Hide", - "ToolTip": "Скрыть пункт \"Создать новое видео\" из контекстного меню медиа-файлов" - }, - "One": { - "Tag": "Show", - "ToolTip": "Показывать пункт \"Создать новое видео\" в контекстном меню медиа-файлов (значение по умолчанию)" - } - } - }, - { - "Id": 1207, - "Region": "Context menu", "Function": "PrintCMDContext", "Arg": { "Zero": { @@ -1930,7 +1915,7 @@ } }, { - "Id": 1208, + "Id": 1207, "Region": "Context menu", "Function": "IncludeInLibraryContext", "Arg": { @@ -1945,7 +1930,7 @@ } }, { - "Id": 1209, + "Id": 1208, "Region": "Context menu", "Function": "SendToContext", "Arg": { @@ -1960,7 +1945,7 @@ } }, { - "Id": 1210, + "Id": 1209, "Region": "Context menu", "Function": "CompressedFolderNewContext", "Arg": { @@ -1975,7 +1960,7 @@ } }, { - "Id": 1211, + "Id": 1210, "Region": "Context menu", "Function": "MultipleInvokeContext", "Arg": { @@ -1990,7 +1975,7 @@ } }, { - "Id": 1212, + "Id": 1211, "Region": "Context menu", "Function": "UseStoreOpenWith", "Arg": { @@ -2005,7 +1990,7 @@ } }, { - "Id": 1213, + "Id": 1212, "Region": "Context menu", "Function": "OpenWindowsTerminalContext", "Arg": { @@ -2020,7 +2005,7 @@ } }, { - "Id": 1214, + "Id": 1213, "Region": "Context menu", "Function": "OpenWindowsTerminalAdminContext", "Arg": { @@ -2035,7 +2020,7 @@ } }, { - "Id": 1215, + "Id": 1214, "Region": "Context menu", "Function": "Windows10ContextMenu", "Arg": { diff --git a/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 index 89f97fd4..2a8f8caa 100644 --- a/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 @@ -11256,6 +11256,16 @@ function CleanupTask { "Register" { + # Checking if notifications and Action Center are disabled + if + ( + ((Get-ItemProperty -Path HKCU:\Software\Policies\Microsoft\Windows\Explorer -Name DisableNotificationCenter -ErrorAction Ignore).DisableNotificationCenter -eq 1) -or + ((Get-ItemProperty -Path HKLM:\Software\Policies\Microsoft\Windows\Explorer -Name DisableNotificationCenter -ErrorAction Ignore).DisableNotificationCenter -eq 1) + ) + { + return + } + # Remove all old tasks Unregister-ScheduledTask -TaskPath "\Sophia Script\", "\SophiApp\" -TaskName "Windows Cleanup", "Windows Cleanup Notification", SoftwareDistribution, Temp -Confirm:$false -ErrorAction Ignore # Remove folders in Task Scheduler. We cannot remove all old folders explicitly and not get errors if any of folders do not exist @@ -11567,12 +11577,7 @@ Get-ChildItem -Path `$env:SystemRoot\SoftwareDistribution\Download -Recurse -For - $($Localization.TaskNotificationTitle) - - - $($Localization.SoftwareDistributionTaskNotificationEvent) - - + $($Localization.SoftwareDistributionTaskNotificationEvent)