Portable Tool for an Ideal Windows Setup
C# activatorbloatware-removalcsharpdebloatdebloaterdisable-servicesmonitoring-systemportableprivacy-toolsregistry-tweakssystem-tuningsystem-utilitytelemetrytweakerwindows-10windows-11windows-debloatwindows-defenderwindows-optimizationwindows-tweaks
corretion of meaning & re method for notice
Greedeks2fde5009bec0
diff --git a/.Source/GTweak/Languages/en/Localize.xaml b/.Source/GTweak/Languages/en/Localize.xamlindex e7bb7b34..8a5a12dc 100644--- a/.Source/GTweak/Languages/en/Localize.xaml+++ b/.Source/GTweak/Languages/en/Localize.xaml@@ -221,7 +221,7 @@<v:String x:Key="TglButton17_description_interface">This tweak will return you to the usual classic context menu for the desktop and «Explorer». Attention the screen may blink.</v:String><v:String x:Key="TglButton18_description_interface">Windows 11 sometimes shows hints on how to use a particular feature, for example, the new «Start» menu or «Quick Settings». They are useful if you are seeing Windows 11 for the first time, as it is useless junk.</v:String><v:String x:Key="TglButton19_description_interface">By default, Windows adds padding between items in Explorer. This is a new feature designed for touch screens. This tweak will restore the classic layout of the file explorer, removing the indentation between the elements and saving you from searching for settings.</v:String>- <v:String x:Key="TglButton20_description_interface">The tweak disables and hides Copilot icons in the taskbar, «Start» menu, Edge, and Notepad, and also disables the Recall feature. Note that only the visual elements and interfaces are removed - Copilot remains available in the system and can still be used if needed. It can only be fully removed by uninstalling Microsoft Edge. If your Windows version never included these AI features (e.g. due to regional restrictions), using the tweak is pointless.</v:String>+ <v:String x:Key="TglButton20_description_interface">The tweak disables and, where possible, hides Copilot icons on the taskbar, in the «Start Menu», in Edge, and in Notepad, blocking its functionality, and also disables Recall. At the same time, the core Copilot application itself is not affected, remains in the system, and can be used if needed. Copilot can only be fully removed along with Microsoft Edge. If these AI features are not present in your Windows initially, using the tweak is pointless.</v:String><v:String x:Key="TglButton21_description_interface">This tweak will allow you to add the «End task» option to the context menu when you right-click on the application on the taskbar. This speeds up the completion of processes without having to open the task Manager. Attention the screen may blink.</v:String><v:String x:Key="TglButton22_description_interface">This tweak removes the «Search», «Task View», and «Chat» icons, disables the snap layouts when hovering over the maximize button, and removes «Learn about this picture»; in older Windows 11 builds, it also removes the Copilot icon. For Windows 10 users, it additionally removes «News and Interests» and Cortana. Attention the screen may blink.</v:String><v:String x:Key="TglButton23_description_interface">By default, Windows uses the collected information to target ads, i.e. to display ads that match your interests. And literally, this advertisement is located wherever free space is available for display. If you don't want Windows to display personalized ads in all Store apps, Explorer, Options, and the Start menu, then you can disable this junk.</v:String>diff --git a/.Source/GTweak/Languages/fr/Localize.xaml b/.Source/GTweak/Languages/fr/Localize.xamlindex 0709e88a..250038f8 100644--- a/.Source/GTweak/Languages/fr/Localize.xaml+++ b/.Source/GTweak/Languages/fr/Localize.xaml@@ -222,7 +222,7 @@<v:String x:Key="TglButton17_description_interface">Reviens au menu contextuel classique pour le bureau et l’explorateur. Attention, l’écran peut clignoter.</v:String><v:String x:Key="TglButton18_description_interface">Windows 11 affiche parfois des astuces sur l’utilisation de fonctionnalités, par exemple le nouveau menu Démarrer ou les Paramètres rapides. Utile pour les nouveaux utilisateurs, mais souvent inutile.</v:String><v:String x:Key="TglButton19_description_interface">Windows ajoute par défaut un espacement entre les éléments dans l’explorateur pour les écrans tactiles. Ce tweak restaure la disposition classique sans indentation.</v:String>- <v:String x:Key="TglButton20_description_interface">The tweak disables and hides Copilot icons in the taskbar, «Start» menu, Edge, and Notepad, and also disables the Recall feature. Note that only the visual elements and interfaces are removed - Copilot remains available in the system and can still be used if needed. It can only be fully removed by uninstalling Microsoft Edge. If your Windows version never included these AI features (e.g. due to regional restrictions), using the tweak is pointless.</v:String>+ <v:String x:Key="TglButton20_description_interface">The tweak disables and, where possible, hides Copilot icons on the taskbar, in the «Start Menu», in Edge, and in Notepad, blocking its functionality, and also disables Recall. At the same time, the core Copilot application itself is not affected, remains in the system, and can be used if needed. Copilot can only be fully removed along with Microsoft Edge. If these AI features are not present in your Windows initially, using the tweak is pointless.</v:String><v:String x:Key="TglButton21_description_interface">Ajoute l’option « Terminer la tâche » dans le menu contextuel du clic droit sur une application dans la barre des tâches. Accélère la fermeture des processus. Attention, l’écran peut clignoter.</v:String><v:String x:Key="TglButton22_description_interface">Supprime les icônes « Rechercher », « Vue des tâches » et « Chat », désactive les dispositions de capture au survol du bouton maximiser, et supprime « En savoir plus sur cette image ». Sur Windows 10, supprime aussi « Actualités et intérêts » et Cortana. Attention, l’écran peut clignoter.</v:String><v:String x:Key="TglButton23_description_interface">Windows utilise par défaut les infos collectées pour cibler les publicités, affichées partout où il y a de la place. Désactive cette publicité personnalisée dans les applications Store, Explorateur, Options et menu Démarrer.</v:String>diff --git a/.Source/GTweak/Languages/it/Localize.xaml b/.Source/GTweak/Languages/it/Localize.xamlindex 237eb689..62787bbc 100644--- a/.Source/GTweak/Languages/it/Localize.xaml+++ b/.Source/GTweak/Languages/it/Localize.xaml@@ -221,7 +221,7 @@<v:String x:Key="TglButton17_description_interface">Ripristina il classico menu contestuale per desktop ed Esplora risorse. Attenzione: lo schermo potrebbe lampeggiare.</v:String><v:String x:Key="TglButton18_description_interface">Disattiva i suggerimenti e consigli di Windows 11 su funzionalità come il nuovo menu Start o Impostazioni rapide.</v:String><v:String x:Key="TglButton19_description_interface">Ripristina il layout classico di Esplora risorse, rimuovendo gli spazi aggiuntivi pensati per i touchscreen.</v:String>- <v:String x:Key="TglButton20_description_interface">The tweak disables and hides Copilot icons in the taskbar, «Start» menu, Edge, and Notepad, and also disables the Recall feature. Note that only the visual elements and interfaces are removed - Copilot remains available in the system and can still be used if needed. It can only be fully removed by uninstalling Microsoft Edge. If your Windows version never included these AI features (e.g. due to regional restrictions), using the tweak is pointless.</v:String>+ <v:String x:Key="TglButton20_description_interface">The tweak disables and, where possible, hides Copilot icons on the taskbar, in the «Start Menu», in Edge, and in Notepad, blocking its functionality, and also disables Recall. At the same time, the core Copilot application itself is not affected, remains in the system, and can be used if needed. Copilot can only be fully removed along with Microsoft Edge. If these AI features are not present in your Windows initially, using the tweak is pointless.</v:String><v:String x:Key="TglButton21_description_interface">Aggiunge l’opzione «Termina attività» al menu contestuale delle app sulla barra delle applicazioni. Attenzione: lo schermo potrebbe lampeggiare.</v:String><v:String x:Key="TglButton22_description_interface">Rimuove le icone «Cerca», «Visualizzazione attività» e «Chat», disattiva le disposizioni automatiche e, in Windows 11, rimuove anche l’icona Copilot. In Windows 10, rimuove anche «Notizie e Interessi» e Cortana. Attenzione: lo schermo potrebbe lampeggiare.</v:String><v:String x:Key="TglButton23_description_interface">Disattiva la pubblicità personalizzata che Windows mostra in varie aree come App Store, Esplora risorse e menu Start.</v:String>diff --git a/.Source/GTweak/Languages/ko/Localize.xaml b/.Source/GTweak/Languages/ko/Localize.xamlindex 75c92a0d..b9b12f3f 100644--- a/.Source/GTweak/Languages/ko/Localize.xaml+++ b/.Source/GTweak/Languages/ko/Localize.xaml@@ -221,7 +221,7 @@<v:String x:Key="TglButton17_description_interface">이렇게 조정하면 바탕화면과 «탐색기»에 대한 일반적인 클래식 컨텍스트 메뉴로 돌아갑니다. 화면이 깜박일 수 있으니 주의하세요.</v:String><v:String x:Key="TglButton18_description_interface">Windows 11에서는 새로운 «시작» 메뉴나 «빠른 설정»과 같은 특정 기능을 사용하는 방법에 대한 힌트를 표시하는 경우가 있습니다. 이러한 힌트는 Windows 11을 처음 사용하는 경우 유용합니다.</v:String><v:String x:Key="TglButton19_description_interface">기본적으로 Windows는 탐색기에서 항목 사이에 패딩을 추가합니다. 이는 터치 스크린을 위해 설계된 새로운 기능입니다. 이 조정은 파일 탐색기의 클래식 레이아웃을 복원하여 요소 사이의 들여쓰기를 제거하고 설정을 검색하는 데 시간을 절약합니다.</v:String>- <v:String x:Key="TglButton20_description_interface">The tweak disables and hides Copilot icons in the taskbar, «Start» menu, Edge, and Notepad, and also disables the Recall feature. Note that only the visual elements and interfaces are removed - Copilot remains available in the system and can still be used if needed. It can only be fully removed by uninstalling Microsoft Edge. If your Windows version never included these AI features (e.g. due to regional restrictions), using the tweak is pointless.</v:String>+ <v:String x:Key="TglButton20_description_interface">The tweak disables and, where possible, hides Copilot icons on the taskbar, in the «Start Menu», in Edge, and in Notepad, blocking its functionality, and also disables Recall. At the same time, the core Copilot application itself is not affected, remains in the system, and can be used if needed. Copilot can only be fully removed along with Microsoft Edge. If these AI features are not present in your Windows initially, using the tweak is pointless.</v:String><v:String x:Key="TglButton21_description_interface">이 조정을 통해 작업 표시줄에서 응용 프로그램을 마우스 오른쪽 버튼으로 클릭하면 컨텍스트 메뉴에 «작업 끝내기» 옵션을 추가할 수 있습니다. 이렇게 하면 작업 관리자를 열지 않고도 프로세스를 완료하는 속도가 빨라집니다. 화면이 깜박일 수 있으니 주의하세요.</v:String><v:String x:Key="TglButton22_description_interface">이 트윅은 «검색», «작업 보기» 및 «채팅» 아이콘을 제거하고, 최대화 버튼 위에 마우스를 올렸을 때 나타나는 스냅 레이아웃을 비활성화하며, «이 사진에 대해 알아보기»를 제거합니다; 구버전 Windows 11에서는 Copilot 아이콘도 제거됩니다. Windows 10 사용자의 경우 추가로 «뉴스 및 관심사»와 Cortana를 제거합니다. 화면이 깜박일 수 있으니 주의하세요.</v:String><v:String x:Key="TglButton23_description_interface">기본적으로 Windows는 수집된 정보를 사용하여 광고를 타겟팅, 즉 사용자의 관심사와 일치하는 광고를 표시합니다. 그리고 말 그대로 이 광고는 표시할 수 있는 여유 공간이 있는 곳이면 어디든 배치됩니다. 모든 스토어 앱, 탐색기, 옵션 및 시작 메뉴에 개인 맞춤 광고를 표시하지 않으려면 이 정크를 비활성화하면 됩니다.</v:String>diff --git a/.Source/GTweak/Languages/pt-br/Localize.xaml b/.Source/GTweak/Languages/pt-br/Localize.xamlindex fb81b03a..34763ef5 100644--- a/.Source/GTweak/Languages/pt-br/Localize.xaml+++ b/.Source/GTweak/Languages/pt-br/Localize.xaml@@ -221,7 +221,7 @@<v:String x:Key="TglButton17_description_interface">Este ajuste irá retorná-lo ao menu de contexto clássico usual para a área de trabalho e "Explorador". Atenção, a tela pode piscar.</v:String><v:String x:Key="TglButton18_description_interface">O Windows 11 às vezes mostra dicas sobre como usar um recurso específico, por exemplo, o novo menu "Iniciar" ou "Configurações rápidas". Eles são úteis se você estiver vendo o Windows 11 pela primeira vez, caso contrário, é lixo inútil.</v:String><v:String x:Key="TglButton19_description_interface">Por padrão, o Windows adiciona preenchimento entre os itens no Explorer. Este é um novo recurso projetado para telas sensíveis ao toque. Este ajuste irá restaurar o layout clássico do explorador de arquivos, removendo o recuo entre os elementos e poupando-o de procurar configurações.</v:String>- <v:String x:Key="TglButton20_description_interface">O ajuste desativa e oculta os ícones do Copilot na barra de tarefas, menu "Iniciar", Edge e Bloco de Notas, e também desativa o recurso Recall. Observe que apenas os elementos visuais e as interfaces são removidos - o Copilot permanece disponível no sistema e ainda pode ser usado se necessário. Ele só pode ser totalmente removido desinstalando o Microsoft Edge. Se a sua versão do Windows nunca incluiu esses recursos de IA (por exemplo, devido a restrições regionais), usar o ajuste é inútil.</v:String>+ <v:String x:Key="TglButton20_description_interface">O ajuste desativa e, onde possível, oculta os ícones do Copilot na barra de tarefas, no menu "Iniciar", no Edge e no Bloco de Notas, bloqueando sua funcionalidade, além de desativar o Recall. O aplicativo principal do Copilot não é afetado, permanece no sistema e pode ser usado se necessário. A remoção completa do Copilot só é possível com o Microsoft Edge. Se estes recursos de IA não existirem no seu Windows inicialmente, usar o ajuste é inútil.</v:String><v:String x:Key="TglButton21_description_interface">Este ajuste permitirá que você adicione a opção "Finalizar tarefa" ao menu de contexto quando você clicar com o botão direito no aplicativo na barra de tarefas. Isso acelera a conclusão dos processos sem ter que abrir o Gerenciador de Tarefas. Atenção, a tela pode piscar.</v:String><v:String x:Key="TglButton22_description_interface">Este ajuste remove os ícones "Pesquisa", "Visão de Tarefas" e "Chat", desativa os layouts de encaixe ao passar o mouse sobre o botão de maximizar e remove "Saiba mais sobre esta imagem"; em compilações mais antigas do Windows 11, ele também remove o ícone do Copilot. Para usuários do Windows 10, ele remove adicionalmente "Notícias e Interesses" e a Cortana. Atenção, a tela pode piscar.</v:String><v:String x:Key="TglButton23_description_interface">Por padrão, o Windows usa as informações coletadas para direcionar anúncios, ou seja, para exibir anúncios que correspondem aos seus interesses. E, literalmente, essa propaganda está localizada onde quer que haja espaço livre disponível para exibição. Se você não quer que o Windows exiba anúncios personalizados em todos os aplicativos da Loja, Explorador, Opções e menu Iniciar, então você pode desativar este lixo.</v:String>diff --git a/.Source/GTweak/Languages/ru/Localize.xaml b/.Source/GTweak/Languages/ru/Localize.xamlindex 11260b52..23438d74 100644--- a/.Source/GTweak/Languages/ru/Localize.xaml+++ b/.Source/GTweak/Languages/ru/Localize.xaml@@ -221,7 +221,7 @@<v:String x:Key="TglButton17_description_interface">Данный твик вернет вам привычное классическое контекстное меню для рабочего стола и «Проводника». Внимание может моргать экран.</v:String><v:String x:Key="TglButton18_description_interface">Windows 11 иногда показывает подсказки о том, как использовать ту или иную функцию, например, новое меню «Пуск» или «Быстрые настройки». Они полезны, если вы впервые видите Windows 11, а так это бесполезный хлам.</v:String><v:String x:Key="TglButton19_description_interface">По умолчанию Windows добавляет отступы между элементами в проводнике. Это новая функция предназначена для сенсорных экранов. Данный твик восстановит классический макет проводника файлов, убрав отступы между элементами и избавив вас от необходимости поиска настроек.</v:String>- <v:String x:Key="TglButton20_description_interface">Твик отключает и скрывает значки Copilot на панели задач, в меню «Пуск», в Edge и Notepad, а также отключает Recall. Это касается только визуальных элементов - сам Copilot остаётся в системе, и при необходимости с ним можно работать. Полностью удалить Copilot можно только вместе с Microsoft Edge. Если в вашей Windows эти ИИ-функции изначально отсутствуют (например, из-за региональных ограничений), использовать твик не имеет смысла.</v:String>+ <v:String x:Key="TglButton20_description_interface">Твик отключает и, где возможно, скрывает значки Copilot на панели задач, в меню «Пуск», в Edge и блокноте, блокируя его функционал, а также отключает Recall. При этом само приложение Copilot не затрагивается и остаётся в системе, и при необходимости с ним можно работать. Полностью удалить Copilot можно только вместе с Microsoft Edge. Если в вашей Windows эти ИИ-функции изначально отсутствуют, использовать твик не имеет смысла.</v:String><v:String x:Key="TglButton21_description_interface">Этот твик позволит добавить опцию «Завершить задачу» в контекстное меню при щелчке правой кнопкой мыши по приложению на панели задач. Это ускоряет завершение процессов без необходимости открытия диспетчера задач. Внимание может моргать экран.</v:String><v:String x:Key="TglButton22_description_interface">Твик уберает значки «Поиск», «Предоставление задач» и «Чат», отключает макеты привязки при наведении на кнопку разворачивания и убирает «Дополнительные сведения об этом изображении»; в старых сборках Windows 11 также убирается значок Copilot. Для пользователей Windows 10 дополнительно уберет «Новости и интересы» и Cortana. Внимание может моргать экран.</v:String><v:String x:Key="TglButton23_description_interface">По умолчанию Windows использует собранную информацию для таргетинга рекламы, т. е. для показа рекламы, соответствующей вашим интересам. И буквально эта реклама размещена везде, где доступно свободное пространство для показа. Если вы не хотите, чтобы Windows отображала персонализированную рекламу во всех приложениях Магазина, Проводнике, Параметрах и меню Пуск, то вы можете отключить этот хлам.</v:String>diff --git a/.Source/GTweak/Languages/uk/Localize.xaml b/.Source/GTweak/Languages/uk/Localize.xamlindex 8911a3a8..941d09d5 100644--- a/.Source/GTweak/Languages/uk/Localize.xaml+++ b/.Source/GTweak/Languages/uk/Localize.xaml@@ -221,7 +221,7 @@<v:String x:Key="TglButton17_description_interface">Це налаштування поверне звичне класичне контекстне меню для робочого столу та «Провідника». Увага, екран може мерехтіти.</v:String><v:String x:Key="TglButton18_description_interface">Іноді Windows 11 показує поради щодо використання тої чи іншої функції, наприклад, нового меню «Пуск» або «Швидкі налаштування». Це корисно під час першого знайомства з Windows 11, потім лише відволікає.</v:String><v:String x:Key="TglButton19_description_interface">Як усталено, Windows додає відступи між елементами в провіднику. Нову функцію розроблено для сенсорних екранів. Це налаштування відновлює класичний макет файлового провідника шляхом видалення відступів між елементами та позбавляє необхідності пошуку налаштувань.</v:String>- <v:String x:Key="TglButton20_description_interface">The tweak disables and hides Copilot icons in the taskbar, «Start» menu, Edge, and Notepad, and also disables the Recall feature. Note that only the visual elements and interfaces are removed - Copilot remains available in the system and can still be used if needed. It can only be fully removed by uninstalling Microsoft Edge. If your Windows version never included these AI features (e.g. due to regional restrictions), using the tweak is pointless.</v:String>+ <v:String x:Key="TglButton20_description_interface">The tweak disables and, where possible, hides Copilot icons on the taskbar, in the «Start Menu», in Edge, and in Notepad, blocking its functionality, and also disables Recall. At the same time, the core Copilot application itself is not affected, remains in the system, and can be used if needed. Copilot can only be fully removed along with Microsoft Edge. If these AI features are not present in your Windows initially, using the tweak is pointless.</v:String><v:String x:Key="TglButton21_description_interface">Це налаштування дозволить додати команду «Завершити завдання» в контекстне меню, яке відкривається після натискання правою кнопкою миші на додатку на панелі завдань. Це пришвидшує завершення процесів без необхідності відкривати диспетчер завдань. Увага, екран може мерехтіти.</v:String><v:String x:Key="TglButton22_description_interface">Це налаштування прибирає піктограми «Пошук», «Перегляд завдань» та «Чат», вимикає макети прив’язки при наведенні на кнопку максимізації та прибирає команду «Дізнатися про це зображення»; у старих збірках Windows 11 також прибирається піктограма Copilot. Для користувачів Windows 10 додатково прибирає «Новини та інтереси», Cortana. Увага, екран може мерехтіти.</v:String><v:String x:Key="TglButton23_description_interface">Як усталено, Windows використовує зібрану інформацію для цільової реклами - реклами, що відповідає вашим інтересам. Практично ця реклама розміщуватиметься там, де є вільне місце для відображення. Якщо ви не хочете, щоб Windows відображала персоналізовану рекламу у всіх додатках Магазину, в Провіднику, в Налаштуваннях та меню «Пуск», можете вимкнути це сміття.</v:String>diff --git a/.Source/GTweak/Utilities/Controls/SettingsEngine.cs b/.Source/GTweak/Utilities/Controls/SettingsEngine.csindex d7e28a2b..a8501830 100644--- a/.Source/GTweak/Utilities/Controls/SettingsEngine.cs+++ b/.Source/GTweak/Utilities/Controls/SettingsEngine.cs@@ -82,7 +82,7 @@ namespace GTweak.Utilities.Controlsinternal static void SaveFileConfig(){if (INIManager.IsAllTempDictionaryEmpty)- new NotificationManager().Show("info", "export_warning_notification").None();+ new NotificationManager().Show("info", "export_warning_notification").Perform();else{VistaSaveFileDialog vistaSaveFileDialog = new VistaSaveFileDialog@@ -133,10 +133,10 @@ namespace GTweak.Utilities.Controlsif (File.ReadLines(PathLocator.Files.Config).Any(line => line.Contains("TglButton")) || File.ReadLines(PathLocator.Files.Config).Any(line => line.Contains("Slider")))new ImportWindow(Path.GetFileName(vistaOpenFileDialog.FileName)).ShowDialog();else- new NotificationManager().Show("info", "empty_import_notification").None();+ new NotificationManager().Show("info", "empty_import_notification").Perform();}else- new NotificationManager().Show("info", "warn_import_notification").None();+ new NotificationManager().Show("info", "warn_import_notification").Perform();}internal static void SelfRemoval()diff --git a/.Source/GTweak/Utilities/Managers/NotificationManager.cs b/.Source/GTweak/Utilities/Managers/NotificationManager.csindex b7dc915f..a991f063 100644--- a/.Source/GTweak/Utilities/Managers/NotificationManager.cs+++ b/.Source/GTweak/Utilities/Managers/NotificationManager.cs@@ -68,10 +68,10 @@ namespace GTweak.Utilities.Managers_text = text;}- internal void None() => ShowNotification(NoticeAction.None);+ internal void Perform(NoticeAction action = NoticeAction.None) => ShowNotification(action);internal void Logout() => ShowNotification(NoticeAction.Logout);internal void Restart() => ShowNotification(NoticeAction.Restart);- internal void Execute(NoticeAction action) => ShowNotification(action);+private async void ShowNotification(NoticeAction action){diff --git a/.Source/GTweak/Utilities/Tweaks/Firewall.cs b/.Source/GTweak/Utilities/Tweaks/Firewall.csindex b1de4bf8..87562a2a 100644--- a/.Source/GTweak/Utilities/Tweaks/Firewall.cs+++ b/.Source/GTweak/Utilities/Tweaks/Firewall.cs@@ -67,7 +67,7 @@ namespace GTweak.Utilities.TweaksChangeRules(isDisabled, executableFiles.Item1, executableFiles.Item2, NET_FW_RULE_DIRECTION_.NET_FW_RULE_DIR_OUT);});}- catch { new NotificationManager().Show("warn", "warn_firewall_notification").None(); }+ catch { new NotificationManager().Show("warn", "warn_firewall_notification").Perform(); }}@@ -98,7 +98,7 @@ namespace GTweak.Utilities.Tweaksprotected static void BlockSpyDomain(in bool isDisabled){try { RulesHosts(isDisabled); }- catch { new NotificationManager().Show("warn", "warn_firewall_notification").None(); }+ catch { new NotificationManager().Show("warn", "warn_firewall_notification").Perform(); }}private static void RulesHosts(in bool isDisabled)diff --git a/.Source/GTweak/Utilities/Tweaks/SystemMaintenance.cs b/.Source/GTweak/Utilities/Tweaks/SystemMaintenance.csindex d212bc3e..4c375075 100644--- a/.Source/GTweak/Utilities/Tweaks/SystemMaintenance.cs+++ b/.Source/GTweak/Utilities/Tweaks/SystemMaintenance.cs@@ -33,10 +33,10 @@ namespace GTweak.Utilities.TweaksRegistryHelp.Write(Registry.LocalMachine, @"SYSTEM\CurrentControlSet\services\defragsvc", "Start", 2, RegistryValueKind.DWord);RegistryHelp.Write(Registry.LocalMachine, @"SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction", "Enable", "Y", RegistryValueKind.String);- new NotificationManager(300).Show("info", "success_defrag_on_notification").None();+ new NotificationManager(300).Show("info", "success_defrag_on_notification").Perform();}else- new NotificationManager().Show("info", "warn_defrag_on_notification").None();+ new NotificationManager().Show("info", "warn_defrag_on_notification").Perform();}else{@@ -46,13 +46,13 @@ namespace GTweak.Utilities.TweaksRegistryHelp.Write(Registry.LocalMachine, @"SYSTEM\CurrentControlSet\services\defragsvc", "Start", 4, RegistryValueKind.DWord);RegistryHelp.Write(Registry.LocalMachine, @"SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction", "Enable", "N", RegistryValueKind.String);- new NotificationManager(300).Show("info", "success_defrag_off_notification").None();+ new NotificationManager(300).Show("info", "success_defrag_off_notification").Perform();}else- new NotificationManager().Show("info", "warn_defrag_off_notification").None();+ new NotificationManager().Show("info", "warn_defrag_off_notification").Perform();}}- catch { new NotificationManager().Show("warn", "error_defrag_notification").None(); }+ catch { new NotificationManager().Show("warn", "error_defrag_notification").Perform(); }}@@ -77,13 +77,13 @@ namespace GTweak.Utilities.Tweaks_outParams = _restorePoint.InvokeMethod("CreateRestorePoint", _inParams, null);if ((uint)_outParams["ReturnValue"] == 0)- new NotificationManager(300).Show("info", "success_point_notification").None();+ new NotificationManager(300).Show("info", "success_point_notification").Perform();else- new NotificationManager(300).Show("warn", "error_point_notification").None();+ new NotificationManager(300).Show("warn", "error_point_notification").Perform();RegistryHelp.DeleteValue(Registry.LocalMachine, @"SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore", "SystemRestorePointCreationFrequency");}- catch { new NotificationManager().Show("warn", "error_point_notification").None(); }+ catch { new NotificationManager().Show("warn", "error_point_notification").Perform(); }}internal static void StartRecovery()@@ -93,7 +93,7 @@ namespace GTweak.Utilities.TweaksEnableRecovery();CommandExecutor.RunCommand("/c rstrui.exe");}- catch { new NotificationManager().Show("warn", "error_recovery_notification").None(); }+ catch { new NotificationManager().Show("warn", "error_recovery_notification").Perform(); }}internal static void DisableRestorePoint()@@ -112,7 +112,7 @@ namespace GTweak.Utilities.TweaksDisableSR(PathLocator.Folders.SystemDrive + @"\\");}else- new NotificationManager().Show("info", "warn_recovery_notification").None();+ new NotificationManager().Show("info", "warn_recovery_notification").Perform();}private static void EnableRecovery()diff --git a/.Source/GTweak/Utilities/Tweaks/SystemTweaks.cs b/.Source/GTweak/Utilities/Tweaks/SystemTweaks.csindex 37fc3ace..6485d602 100644--- a/.Source/GTweak/Utilities/Tweaks/SystemTweaks.cs+++ b/.Source/GTweak/Utilities/Tweaks/SystemTweaks.cs@@ -279,7 +279,7 @@ namespace GTweak.Utilities.TweakswaitingWindow.Show();BackgroundQueue backgroundQueue = new BackgroundQueue();- await backgroundQueue.QueueTask(delegate { new NotificationManager().Show("info", "defender_notification").None(); });+ await backgroundQueue.QueueTask(delegate { new NotificationManager().Show("info", "defender_notification").Perform(); });await backgroundQueue.QueueTask(delegate { WindowsDefender.SetProtectionState(isDisabled); });await backgroundQueue.QueueTask(delegate { new NotificationManager(300).Show().Restart(); });waitingWindow.Close();diff --git a/.Source/GTweak/Utilities/Tweaks/WindowsLicense.cs b/.Source/GTweak/Utilities/Tweaks/WindowsLicense.csindex 5b07e8a7..c8328ee6 100644--- a/.Source/GTweak/Utilities/Tweaks/WindowsLicense.cs+++ b/.Source/GTweak/Utilities/Tweaks/WindowsLicense.cs@@ -38,11 +38,11 @@ namespace GTweak.Utilities.Tweaksif (string.IsNullOrEmpty(keyWinHWID) && string.IsNullOrEmpty(keyWinKMS)){- new NotificationManager(300).Show("warn", "keynotfound_notification").None();+ new NotificationManager(300).Show("warn", "keynotfound_notification").Perform();return;}- new NotificationManager().Show("warn", "win_activate_notification").None();+ new NotificationManager().Show("warn", "win_activate_notification").Perform();WaitingWindow waitingWindow = new WaitingWindow();waitingWindow.Show();@@ -96,13 +96,13 @@ namespace GTweak.Utilities.TweakswaitingWindow.Close();- new NotificationManager(300).Show("warn", IsWindowsActivated ? "success_activate_notification" : "error_activate_notification").Execute(IsWindowsActivated ? NotificationManager.NoticeAction.Restart : NotificationManager.NoticeAction.None);+ new NotificationManager(300).Show("warn", IsWindowsActivated ? "success_activate_notification" : "error_activate_notification").Perform(IsWindowsActivated ? NotificationManager.NoticeAction.Restart : default);}}catch{waitingWindow.Close();- new NotificationManager(300).Show("warn", "error_activate_notification").None();+ new NotificationManager(300).Show("warn", "error_activate_notification").Perform();}}}diff --git a/.Source/GTweak/View/ConfidentialityView.xaml.cs b/.Source/GTweak/View/ConfidentialityView.xaml.csindex 5e2d485a..bb6f65f8 100644--- a/.Source/GTweak/View/ConfidentialityView.xaml.cs+++ b/.Source/GTweak/View/ConfidentialityView.xaml.cs@@ -39,7 +39,7 @@ namespace GTweak.View_confTweaks.ApplyTweaks(toggleButton.Name, toggleButton.State);if (NotificationManager.ConfActions.TryGetValue(toggleButton.Name, out NotificationManager.NoticeAction action))- new NotificationManager(300).Show().Execute(action);+ new NotificationManager(300).Show().Perform(action);Parallel.Invoke(async delegate { await Task.Delay(1000); _confTweaks.AnalyzeAndUpdate(this); });}diff --git a/.Source/GTweak/View/InterfaceView.xaml.cs b/.Source/GTweak/View/InterfaceView.xaml.csindex 42c56509..ec61fbde 100644--- a/.Source/GTweak/View/InterfaceView.xaml.cs+++ b/.Source/GTweak/View/InterfaceView.xaml.cs@@ -22,7 +22,7 @@ namespace GTweak.ViewInitializeComponent();if (!WindowsLicense.IsWindowsActivated)- new NotificationManager().Show("info", "warn_activate_notification").None();+ new NotificationManager().Show("info", "warn_activate_notification").Perform();if (SystemDiagnostics.HardwareData.OSBuild.CompareTo("22621.2361") < 0)TglButton21.IsEnabled = false;@@ -74,7 +74,7 @@ namespace GTweak.ViewExplorerManager.Restart(new Process());if (NotificationManager.IntfActions.TryGetValue(toggleButton.Name, out NotificationManager.NoticeAction action))- new NotificationManager(300).Show().Execute(action);+ new NotificationManager(300).Show().Perform(action);Parallel.Invoke(async delegate { await Task.Delay(1000); _intfTweaks.AnalyzeAndUpdate(this); });}diff --git a/.Source/GTweak/View/MoreView.xaml.cs b/.Source/GTweak/View/MoreView.xaml.csindex e57a4460..73b6985c 100644--- a/.Source/GTweak/View/MoreView.xaml.cs+++ b/.Source/GTweak/View/MoreView.xaml.cs@@ -23,13 +23,13 @@ namespace GTweak.Viewprivate async void BtnLicenseWindows_ClickButton(object sender, EventArgs e){if (WindowsLicense.IsWindowsActivated)- new NotificationManager().Show("info", "ready_activate_notification").None();+ new NotificationManager().Show("info", "ready_activate_notification").Perform();else{if (new SystemDiagnostics().IsNetworkAvailable())await WindowsLicense.StartActivation();else- new NotificationManager().Show("warn", "network_activate_notification").None();+ new NotificationManager().Show("warn", "network_activate_notification").Perform();}}@@ -37,7 +37,7 @@ namespace GTweak.View{WaitingWindow waitingWindow = new WaitingWindow();waitingWindow.Show();- new NotificationManager().Show("info", "createpoint_notification").None();+ new NotificationManager().Show("info", "createpoint_notification").Perform();BackgroundQueue backgroundQueue = new BackgroundQueue();await backgroundQueue.QueueTask(delegate { SystemMaintenance.CreateRestorePoint(); });waitingWindow.Close();@@ -55,7 +55,7 @@ namespace GTweak.ViewBackgroundQueue backgroundQueue = new BackgroundQueue();await backgroundQueue.QueueTask(delegate { ClearingMemory.StartMemoryCleanupAsync(_isWinOldRemoval); });- await backgroundQueue.QueueTask(delegate { new NotificationManager(500).Show("info", "clear_ram_notification").None(); });+ await backgroundQueue.QueueTask(delegate { new NotificationManager(500).Show("info", "clear_ram_notification").Perform(); });}private void BtnDisableDefrag_ClickButton(object sender, EventArgs e) => SystemMaintenance.SetDefragState(false);@@ -67,7 +67,7 @@ namespace GTweak.View{try { SystemMaintenance.DisableRestorePoint(); } catch (Exception ex) { ErrorLogging.LogDebug(ex); }});- await backgroundQueue.QueueTask(delegate { new NotificationManager(300).Show("info", "disable_recovery_notification").None(); });+ await backgroundQueue.QueueTask(delegate { new NotificationManager(300).Show("info", "disable_recovery_notification").Perform(); });}private void BtnEnableDefrag_ClickButton(object sender, EventArgs e) => SystemMaintenance.SetDefragState(true);@@ -88,15 +88,15 @@ namespace GTweak.Viewawait backgroundQueue.QueueTask(delegate{try { NTFSCompressor.SetCompression(selectedPath, true); }- catch { new NotificationManager().Show("warn", "error_compression_notification").None(); }+ catch { new NotificationManager().Show("warn", "error_compression_notification").Perform(); }});- await backgroundQueue.QueueTask(delegate { new NotificationManager(500).Show("info", "success_compression_notification").None(); });+ await backgroundQueue.QueueTask(delegate { new NotificationManager(500).Show("info", "success_compression_notification").Perform(); });}else- new NotificationManager().Show("info", "ready_compression_notification").None();+ new NotificationManager().Show("info", "ready_compression_notification").Perform();}else- new NotificationManager().Show("warn", "notsupport_ntfs_notification").None();+ new NotificationManager().Show("warn", "notsupport_ntfs_notification").Perform();}private async void BtnDecompression_ClickButton(object sender, EventArgs e)@@ -115,16 +115,16 @@ namespace GTweak.Viewawait backgroundQueue.QueueTask(delegate{try { NTFSCompressor.SetCompression(selectedPath, false); }- catch { new NotificationManager().Show("warn", "error_compression_notification").None(); }+ catch { new NotificationManager().Show("warn", "error_compression_notification").Perform(); }});- await backgroundQueue.QueueTask(delegate { new NotificationManager(500).Show("info", "success_decompression_notification").None(); });+ await backgroundQueue.QueueTask(delegate { new NotificationManager(500).Show("info", "success_decompression_notification").Perform(); });}else- new NotificationManager().Show("info", "ready_decompression_notification").None();+ new NotificationManager().Show("info", "ready_decompression_notification").Perform();}else- new NotificationManager().Show("warn", "notsupport_ntfs_notification").None();+ new NotificationManager().Show("warn", "notsupport_ntfs_notification").Perform();}}}diff --git a/.Source/GTweak/View/PakagesView.xaml.cs b/.Source/GTweak/View/PakagesView.xaml.csindex ca6900fc..6921db91 100644--- a/.Source/GTweak/View/PakagesView.xaml.cs+++ b/.Source/GTweak/View/PakagesView.xaml.cs@@ -102,10 +102,10 @@ namespace GTweak.Viewcase MouseButtonState.Pressed when Equals(packageImage.Source, FindResource("DA_DI_" + packageName)) && packageName == "OneDrive":{if (string.IsNullOrWhiteSpace(PathLocator.Executable.OneDrive))- new NotificationManager().Show("warn", "error_onedrive_notification").None();+ new NotificationManager().Show("warn", "error_onedrive_notification").Perform();else{- new NotificationManager().Show("info", "success_onedrive_notification").None();+ new NotificationManager().Show("info", "success_onedrive_notification").Perform();await backgroundQueue.QueueTask(async () =>{diff --git a/.Source/GTweak/View/SystemView.xaml.cs b/.Source/GTweak/View/SystemView.xaml.csindex 06604d95..b3a72645 100644--- a/.Source/GTweak/View/SystemView.xaml.cs+++ b/.Source/GTweak/View/SystemView.xaml.cs@@ -50,7 +50,7 @@ namespace GTweak.View_sysTweaks.ApplyTweaks(toggleButton.Name, toggleButton.State);if (NotificationManager.SysActions.TryGetValue(toggleButton.Name, out NotificationManager.NoticeAction action))- new NotificationManager(300).Show().Execute(action);+ new NotificationManager(300).Show().Perform(action);Parallel.Invoke(async delegate { await Task.Delay(1000); _sysTweaks.AnalyzeAndUpdate(this); });}diff --git a/.Source/GTweak/Windows/ImportWindow.xaml.cs b/.Source/GTweak/Windows/ImportWindow.xaml.csindex 3403922f..a224988b 100644--- a/.Source/GTweak/Windows/ImportWindow.xaml.cs+++ b/.Source/GTweak/Windows/ImportWindow.xaml.cs@@ -51,7 +51,7 @@ namespace GTweak.WindowsExplorerManager.Restart(new Process());if (_requiredActions.Count != 0)- new NotificationManager().Show().Execute(_requiredActions.Max());+ new NotificationManager().Show().Perform(_requiredActions.Max());App.UpdateImport();BeginAnimation(OpacityProperty, FactoryAnimation.CreateTo(0.1, () => { Close(); }));diff --git a/.Source/GTweak/Windows/UpdateWindow.xaml.cs b/.Source/GTweak/Windows/UpdateWindow.xaml.csindex 6397b186..96ac355a 100644--- a/.Source/GTweak/Windows/UpdateWindow.xaml.cs+++ b/.Source/GTweak/Windows/UpdateWindow.xaml.cs@@ -73,7 +73,7 @@ namespace GTweak.Windowscatch{Close();- new NotificationManager().Show("warn", "warn_update_notification").None();+ new NotificationManager().Show("warn", "warn_update_notification").Perform();}}}