Free, open-source Windows optimization tool for performance, privacy, and simplicity.
C# csharpdebloatdotnetgamingopen-sourceoptimizationoptimizeroptimizerduckperformanceprivacytweakertweakswindowswinui
in developin
fatDuck692c566ddc64
diff --git a/optimizerDuck/Resources/Languages/Translations.Designer.cs b/optimizerDuck/Resources/Languages/Translations.Designer.csindex feadea8..a1de388 100644--- a/optimizerDuck/Resources/Languages/Translations.Designer.cs+++ b/optimizerDuck/Resources/Languages/Translations.Designer.cs@@ -117,9 +117,9 @@ namespace optimizerDuck.Resources.Languages {/// <summary>/// Looks up a localized string similar to ./// </summary>- public static string BloatwareDialog_Confirmation_Description {+ public static string BloatwareDialog_Confirmation_Message {get {- return ResourceManager.GetString("BloatwareDialog.Confirmation.Description", resourceCulture);+ return ResourceManager.GetString("BloatwareDialog.Confirmation.Message", resourceCulture);}}diff --git a/optimizerDuck/Resources/Languages/Translations.resx b/optimizerDuck/Resources/Languages/Translations.resxindex 0990386..04541c6 100644--- a/optimizerDuck/Resources/Languages/Translations.resx+++ b/optimizerDuck/Resources/Languages/Translations.resx@@ -824,7 +824,7 @@ Current version: {0}]]></value><data name="BloatwareDialog.Confirmation.Title" xml:space="preserve"><value></value></data>- <data name="BloatwareDialog.Confirmation.Description" xml:space="preserve">+ <data name="BloatwareDialog.Confirmation.Message" xml:space="preserve"><value></value></data></root>\ No newline at end of filediff --git a/optimizerDuck/Resources/Languages/Translations.vi-vn.resx b/optimizerDuck/Resources/Languages/Translations.vi-vn.resxindex 471065c..1a49b17 100644--- a/optimizerDuck/Resources/Languages/Translations.vi-vn.resx+++ b/optimizerDuck/Resources/Languages/Translations.vi-vn.resx@@ -822,4 +822,7 @@ Phiên bản hiện tại: {0}]]> </value><data name="BloatwareDialog.Confirmation.Title" xml:space="preserve"><value>Bạn có muốn xóa {0} ứng dụng?</value></data>+ <data name="BloatwareDialog.Confirmation.Message" xml:space="preserve">+ <value>Bạn chuẩn bị sẽ xóa: {0}</value>+ </data></root>\ No newline at end of filediff --git a/optimizerDuck/UI/ViewModels/Pages/BloatwareViewModel.cs b/optimizerDuck/UI/ViewModels/Pages/BloatwareViewModel.csindex 94bceeb..60824d5 100644--- a/optimizerDuck/UI/ViewModels/Pages/BloatwareViewModel.cs+++ b/optimizerDuck/UI/ViewModels/Pages/BloatwareViewModel.cs@@ -76,14 +76,18 @@ public partial class BloatwareViewModel : ViewModel{var toRemove = AppxPackages.Where(x => x.IsSelected).ToList();- var askForConfirmation = new ContentDialog+ var askForConfirmationDialog = new ContentDialog{Title = string.Format(Translations.BloatwareDialog_Confirmation_Title, SelectedCount),- Content = string.Format(Translations.BloatwareDialog_Confirmation_Message, string.Join(", ", toRemove),- Primary = Translations.Button_Ok,- Close = Translations.Button_Cancel+ Content = string.Format(Translations.BloatwareDialog_Confirmation_Message, string.Join(", ", toRemove.Select(a => a.Name))),+ PrimaryButtonText = Translations.Button_Ok,+ CloseButtonText = Translations.Button_Cancel};+ var result = await _contentDialogService.ShowAsync(askForConfirmationDialog, CancellationToken.None);+ if (result != ContentDialogResult.Primary)+ return;+var viewModel = new ProcessingViewModel();var dialog = new ContentDialog{@@ -108,14 +112,15 @@ public partial class BloatwareViewModel : ViewModelTotal = toRemove.Count,Value = i});- await _bloatwareService.RemoveAppXPackage(item);+ //await _bloatwareService.RemoveAppXPackage(item);+ await Task.Delay(500); // Simulate work}}finally{+ _logger.LogInformation("===== END removing {Count} AppX Packages =====", toRemove.Count);dialog.Hide();await Refresh();- _logger.LogInformation("===== END removing {Count} AppX Packages =====", toRemove.Count);}}diff --git a/optimizerDuck/UI/ViewModels/Pages/SettingsViewModel.cs b/optimizerDuck/UI/ViewModels/Pages/SettingsViewModel.csindex 9ee0c79..20ea5e8 100644--- a/optimizerDuck/UI/ViewModels/Pages/SettingsViewModel.cs+++ b/optimizerDuck/UI/ViewModels/Pages/SettingsViewModel.cs@@ -29,8 +29,10 @@ public partial class SettingsViewModel({[ObservableProperty] private ApplicationTheme _currentApplicationTheme = ApplicationTheme.Unknown;private bool _isInitialized;+[ObservableProperty] private string _selectedCultureName = string.Empty;[ObservableProperty] private int _shellTimeoutMs;+ [ObservableProperty] private bool _removeProvisioned;public string Version { get; } = Shared.FileVersion;//Learn more linksdiff --git a/optimizerDuck/UI/Views/Pages/SettingsPage.xaml b/optimizerDuck/UI/Views/Pages/SettingsPage.xamlindex 3ab0843..ba2bf23 100644--- a/optimizerDuck/UI/Views/Pages/SettingsPage.xaml+++ b/optimizerDuck/UI/Views/Pages/SettingsPage.xaml@@ -132,7 +132,7 @@</StackPanel></ui:CardControl.Header>- <ui:ToggleSwitch />+ <ui:ToggleSwitch Command /></ui:CardControl></StackPanel>