Skip to content

Free, open-source Windows optimization tool for performance, privacy, and simplicity.

feat: upgrade proj to 2.4.0

itsfatduck237fcdcf0917
diff --git a/optimizerDuck.Test/optimizerDuck.Test.csproj b/optimizerDuck.Test/optimizerDuck.Test.csproj
index f79d95e..4336ca4 100644
--- a/optimizerDuck.Test/optimizerDuck.Test.csproj
+++ b/optimizerDuck.Test/optimizerDuck.Test.csproj
@@ -13,7 +13,7 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="10.0.3"/>
- <PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1"/>
+ <PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.3.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.4"/>
<PackageReference Include="xunit" Version="2.9.3"/>
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5">
diff --git a/optimizerDuck/Core/Models/StartupManager/StartupApp.cs b/optimizerDuck/Core/Models/StartupManager/StartupApp.cs
index 14b0187..1e2a229 100644
--- a/optimizerDuck/Core/Models/StartupManager/StartupApp.cs
+++ b/optimizerDuck/Core/Models/StartupManager/StartupApp.cs
@@ -18,14 +18,27 @@ public partial class StartupApp : ObservableObject
{
[ObservableProperty] private bool _isEnabled;
- public ImageSource? LogoImage { get; set; }
+ [ObservableProperty] private ImageSource? _logoImage;
public required string Name { get; init; }
- public required string Publisher { get; init; }
- public required string Command { get; init; }
+ [ObservableProperty] private string _publisher = string.Empty;
+ [ObservableProperty] private string _command = string.Empty;
public required StartupAppLocation Location { get; init; }
public required string PathOrKey { get; init; }
- public required string OriginalValueNameOrFileName { get; init; }
- public string? FilePath { get; set; }
+ [ObservableProperty] private string _originalValueNameOrFileName = string.Empty;
+
+ private string? _filePath;
+ public string? FilePath
+ {
+ get => _filePath;
+ set
+ {
+ if (SetProperty(ref _filePath, value))
+ {
+ OnPropertyChanged(nameof(CanOpenLocation));
+ }
+ }
+ }
+
public bool CanOpenLocation => !string.IsNullOrEmpty(FilePath) && File.Exists(FilePath);
public string LocationDisplay => Location switch
diff --git a/optimizerDuck/Resources/Languages/Translations.resx b/optimizerDuck/Resources/Languages/Translations.resx
index 7360946..c2a10aa 100644
--- a/optimizerDuck/Resources/Languages/Translations.resx
+++ b/optimizerDuck/Resources/Languages/Translations.resx
@@ -1155,7 +1155,7 @@ Update now to enjoy the latest features, improvements, and bug fixes.</value>
<value>Scanning startup items...</value>
</data>
<data name="StartupManager.Loading.Hint" xml:space="preserve">
- <value>This may take a moment while we scan the registry and startup folders.</value>
+ <value>This may take a moment while the application scans the registry and startup folders.</value>
</data>
<data name="StartupManager.Empty.Title" xml:space="preserve">
<value>No startup items</value>
@@ -1166,4 +1166,10 @@ Update now to enjoy the latest features, improvements, and bug fixes.</value>
<data name="StartupManager.Menu.Refresh" xml:space="preserve">
<value>Refresh</value>
</data>
+ <data name="Common.Toggle.On" xml:space="preserve">
+ <value>On</value>
+ </data>
+ <data name="Common.Toggle.Off" xml:space="preserve">
+ <value>Off</value>
+ </data>
</root>
\ No newline at end of file
diff --git a/optimizerDuck/Resources/Languages/Translations.ru-RU.resx b/optimizerDuck/Resources/Languages/Translations.ru-RU.resx
index 5d363b0..4687f21 100644
--- a/optimizerDuck/Resources/Languages/Translations.ru-RU.resx
+++ b/optimizerDuck/Resources/Languages/Translations.ru-RU.resx
@@ -1136,4 +1136,10 @@
<data name="Settings.About.Author.Description" xml:space="preserve">
<value>привет, я создатель этого приложения. я люблю кошек.</value>
</data>
+ <data name="Common.Toggle.On" xml:space="preserve">
+ <value>Вкл</value>
+ </data>
+ <data name="Common.Toggle.Off" xml:space="preserve">
+ <value>Выкл</value>
+ </data>
</root>
\ No newline at end of file
diff --git a/optimizerDuck/Resources/Languages/Translations.vi-VN.resx b/optimizerDuck/Resources/Languages/Translations.vi-VN.resx
index ba0a0da..40605f3 100644
--- a/optimizerDuck/Resources/Languages/Translations.vi-VN.resx
+++ b/optimizerDuck/Resources/Languages/Translations.vi-VN.resx
@@ -1155,7 +1155,7 @@ Cập nhật ngay để trải nghiệm các tính năng mới, cải tiến và
<value>Đang quét các mục khởi động...</value>
</data>
<data name="StartupManager.Loading.Hint" xml:space="preserve">
- <value>Quá trình này có thể mất một lúc khi quét registry và thư mục khởi động.</value>
+ <value>Quá trình này có thể mất một lúc khi ứng dụng quét registry và thư mục khởi động.</value>
</data>
<data name="StartupManager.Empty.Title" xml:space="preserve">
<value>Không có mục khởi động</value>
@@ -1166,4 +1166,10 @@ Cập nhật ngay để trải nghiệm các tính năng mới, cải tiến và
<data name="StartupManager.Menu.Refresh" xml:space="preserve">
<value>Làm mới</value>
</data>
+ <data name="Common.Toggle.On" xml:space="preserve">
+ <value>Bật</value>
+ </data>
+ <data name="Common.Toggle.Off" xml:space="preserve">
+ <value>Tắt</value>
+ </data>
</root>
\ No newline at end of file
diff --git a/optimizerDuck/Resources/Languages/Translations.zh-Hans.resx b/optimizerDuck/Resources/Languages/Translations.zh-Hans.resx
index 4828ad9..fe9a8e8 100644
--- a/optimizerDuck/Resources/Languages/Translations.zh-Hans.resx
+++ b/optimizerDuck/Resources/Languages/Translations.zh-Hans.resx
@@ -1053,4 +1053,10 @@
<data name="Settings.About.Author.Description" xml:space="preserve">
<value>hi, 我是这个应用的作者. 我超爱猫.</value>
</data>
+ <data name="Common.Toggle.On" xml:space="preserve">
+ <value>开启</value>
+ </data>
+ <data name="Common.Toggle.Off" xml:space="preserve">
+ <value>关闭</value>
+ </data>
</root>
\ No newline at end of file
diff --git a/optimizerDuck/Services/DiskCleanupService.cs b/optimizerDuck/Services/DiskCleanupService.cs
index 639dc39..77bd686 100644
--- a/optimizerDuck/Services/DiskCleanupService.cs
+++ b/optimizerDuck/Services/DiskCleanupService.cs
@@ -9,7 +9,7 @@ namespace optimizerDuck.Services;
public class DiskCleanupService(ILogger<DiskCleanupService> logger)
{
- public List<CleanupItem> GetCleanupItems()
+ public static List<CleanupItem> GetCleanupItems()
{
var windowsDir = Environment.GetFolderPath(Environment.SpecialFolder.Windows);
var localAppData = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
diff --git a/optimizerDuck/Services/StartupManagerService.cs b/optimizerDuck/Services/StartupManagerService.cs
index cd7857e..108d2f6 100644
--- a/optimizerDuck/Services/StartupManagerService.cs
+++ b/optimizerDuck/Services/StartupManagerService.cs
@@ -37,6 +37,18 @@ public class StartupManagerService(ILogger<StartupManagerService> logger)
ScanDirectory(userStartup, StartupAppLocation.UserStartupFolder, apps);
ScanDirectory(commonStartup, StartupAppLocation.CommonStartupFolder, apps);
+
+ // Parallel fetch expensive info (Icons, File version info)
+ Parallel.ForEach(apps, new ParallelOptions { MaxDegreeOfParallelism = Environment.ProcessorCount }, app =>
+ {
+ var appInfo = GetAppInfo(app.Command);
+ var publisher = !string.IsNullOrWhiteSpace(appInfo.Publisher) ? appInfo.Publisher : appInfo.Description;
+ if (string.IsNullOrWhiteSpace(publisher)) publisher = app.Location == StartupAppLocation.UserStartupFolder || app.Location == StartupAppLocation.CommonStartupFolder ? "Folder Shortcut" : "Registry";
+
+ app.Publisher = publisher;
+ app.FilePath = appInfo.FilePath;
+ app.LogoImage = ExtractIcon(app.Command);
+ });
});
return apps.OrderBy(a => a.Name).ToList();
@@ -62,21 +74,14 @@ public class StartupManagerService(ILogger<StartupManagerService> logger)
var command = key.GetValue(valueName)?.ToString() ?? string.Empty;
var isEnabled = IsStartupApproved(approvedKey, valueName);
- var appInfo = GetAppInfo(command);
- var publisher = !string.IsNullOrWhiteSpace(appInfo.Publisher) ? appInfo.Publisher : appInfo.Description;
- if (string.IsNullOrWhiteSpace(publisher)) publisher = "Registry";
-
apps.Add(new StartupApp
{
Name = valueName,
- Publisher = publisher,
Command = command,
- FilePath = appInfo.FilePath,
Location = location,
PathOrKey = $@"{rootKey.Name}\{subKeyPath}",
OriginalValueNameOrFileName = valueName,
- IsEnabled = isEnabled,
- LogoImage = ExtractIcon(command)
+ IsEnabled = isEnabled
});
}
}
@@ -115,32 +120,32 @@ public class StartupManagerService(ILogger<StartupManagerService> logger)
try
{
+ // Determine registry root key based on folder location
+ var rootKey = location == StartupAppLocation.CommonStartupFolder
+ ? Registry.LocalMachine
+ : Registry.CurrentUser;
+
+ var approvedSubKeyPath = @"Software\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\StartupFolder";
+ using var approvedKey = rootKey.OpenSubKey(approvedSubKeyPath);
+
foreach (var file in Directory.GetFiles(dirPath))
{
- var isEnabled = !file.EndsWith(".disabled", StringComparison.OrdinalIgnoreCase);
-
var fileName = Path.GetFileName(file);
// Hide pure .ini files like desktop.ini
if (fileName.Equals("desktop.ini", StringComparison.OrdinalIgnoreCase)) continue;
- var name = Path.GetFileNameWithoutExtension(isEnabled ? fileName : fileName.Replace(".disabled", ""));
-
- var appInfo = GetAppInfo(file);
- var publisher = !string.IsNullOrWhiteSpace(appInfo.Publisher) ? appInfo.Publisher : appInfo.Description;
- if (string.IsNullOrWhiteSpace(publisher)) publisher = "Folder Shortcut";
+ var isEnabled = IsStartupApproved(approvedKey, fileName);
+ var name = Path.GetFileNameWithoutExtension(fileName);
apps.Add(new StartupApp
{
Name = string.IsNullOrWhiteSpace(name) ? fileName : name,
- Publisher = publisher,
Command = file,
- FilePath = appInfo.FilePath,
Location = location,
PathOrKey = dirPath,
OriginalValueNameOrFileName = fileName,
- IsEnabled = isEnabled,
- LogoImage = ExtractIcon(file)
+ IsEnabled = isEnabled
});
}
}
@@ -169,7 +174,7 @@ public class StartupManagerService(ILogger<StartupManagerService> logger)
});
}
- private void ToggleRegistryStartupApp(StartupApp app, bool enable)
+ private static void ToggleRegistryStartupApp(StartupApp app, bool enable)
{
// Parse RootKey and SubKey from app.PathOrKey
var firstSlash = app.PathOrKey.IndexOf('\\');
@@ -202,25 +207,17 @@ public class StartupManagerService(ILogger<StartupManagerService> logger)
private static void ToggleFolderStartupApp(StartupApp app, bool enable)
{
- var currentPath = Path.Combine(app.PathOrKey, app.OriginalValueNameOrFileName);
- if (!File.Exists(currentPath)) return;
+ var rootKey = app.Location == StartupAppLocation.CommonStartupFolder
+ ? Registry.LocalMachine
+ : Registry.CurrentUser;
- if (enable)
- {
- if (currentPath.EndsWith(".disabled", StringComparison.OrdinalIgnoreCase))
- {
- var newPath = currentPath[..^9]; // remove .disabled
- File.Move(currentPath, newPath);
- }
- }
- else
- {
- if (!currentPath.EndsWith(".disabled", StringComparison.OrdinalIgnoreCase))
- {
- var newPath = currentPath + ".disabled";
- File.Move(currentPath, newPath);
- }
- }
+ const string approvedSubKeyPath = @"Software\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\StartupFolder";
+ using var approvedKey = rootKey.OpenSubKey(approvedSubKeyPath, true)
+ ?? rootKey.CreateSubKey(approvedSubKeyPath, true);
+
+ var data = new byte[12];
+ data[0] = enable ? (byte)0x02 : (byte)0x03;
+ approvedKey.SetValue(app.OriginalValueNameOrFileName, data, RegistryValueKind.Binary);
}
public async Task<List<StartupTask>> GetStartupTasksAsync()
@@ -258,10 +255,10 @@ public class StartupManagerService(ILogger<StartupManagerService> logger)
return tasks.OrderBy(t => t.TaskName).ToList();
}
- private void ParseTaskElement(JsonElement el, List<StartupTask> tasks)
+ private static void ParseTaskElement(JsonElement el, List<StartupTask> tasks)
{
- var name = el.TryGetProperty("TaskName", out var nProp) ? nProp.GetString() : "";
- var path = el.TryGetProperty("TaskPath", out var pProp) ? pProp.GetString() : "";
+ var name = el.TryGetProperty("TaskName", out var nProp) ? nProp.GetString() ?? "" : "";
+ var path = el.TryGetProperty("TaskPath", out var pProp) ? pProp.GetString() ?? "" : "";
var state = el.TryGetProperty("State", out var sProp) ? sProp.GetInt32() : 0;
var desc = el.TryGetProperty("Description", out var dProp) ? dProp.GetString() : "";
@@ -281,7 +278,9 @@ public class StartupManagerService(ILogger<StartupManagerService> logger)
try
{
var command = enable ? "Enable-ScheduledTask" : "Disable-ScheduledTask";
- var script = $@"{command} -TaskPath ""{task.TaskPath}"" -TaskName ""{task.TaskName}""";
+ var script = $"""
+ {command} -TaskPath "{task.TaskPath}" -TaskName "{task.TaskName}"
+ """;
var result = await ShellService.PowerShellAsync(script);
if (result.ExitCode != 0)
@@ -294,7 +293,7 @@ public class StartupManagerService(ILogger<StartupManagerService> logger)
}
}
- private ImageSource? ExtractIcon(string command)
+ private static BitmapSource? ExtractIcon(string command)
{
try
{
@@ -336,7 +335,7 @@ public class StartupManagerService(ILogger<StartupManagerService> logger)
return null;
}
- private string? GetFullPathFromEnvironment(string fileName)
+ private static string? GetFullPathFromEnvironment(string fileName)
{
if (File.Exists(fileName))
return Path.GetFullPath(fileName);
diff --git a/optimizerDuck/UI/ViewModels/Pages/BloatwareViewModel.cs b/optimizerDuck/UI/ViewModels/Pages/BloatwareViewModel.cs
index a027899..0f3451d 100644
--- a/optimizerDuck/UI/ViewModels/Pages/BloatwareViewModel.cs
+++ b/optimizerDuck/UI/ViewModels/Pages/BloatwareViewModel.cs
@@ -21,7 +21,6 @@ public partial class BloatwareViewModel : ViewModel
private readonly BloatwareService _bloatwareService;
private readonly IContentDialogService _contentDialogService;
private readonly ILogger<BloatwareViewModel> _logger;
- private readonly ISnackbarService _snackbarService;
private bool _isInitialized;
// Search, Filter, Sort
@@ -31,12 +30,10 @@ public partial class BloatwareViewModel : ViewModel
[ObservableProperty] private int _selectedSortByIndex; // 0=Default, 1=Name, 2=Publisher, 3=Risk
[ObservableProperty] private bool isLoading;
- public BloatwareViewModel(BloatwareService bloatwareService, IContentDialogService contentDialogService,
- ISnackbarService snackbarService, ILogger<BloatwareViewModel> logger)
+ public BloatwareViewModel(BloatwareService bloatwareService, IContentDialogService contentDialogService, ILogger<BloatwareViewModel> logger)
{
_bloatwareService = bloatwareService;
_contentDialogService = contentDialogService;
- _snackbarService = snackbarService;
_logger = logger;
AppxPackages.CollectionChanged += (_, e) =>
diff --git a/optimizerDuck/UI/ViewModels/Pages/DiskCleanupViewModel.cs b/optimizerDuck/UI/ViewModels/Pages/DiskCleanupViewModel.cs
index d9cea50..ead62ae 100644
--- a/optimizerDuck/UI/ViewModels/Pages/DiskCleanupViewModel.cs
+++ b/optimizerDuck/UI/ViewModels/Pages/DiskCleanupViewModel.cs
@@ -52,8 +52,8 @@ public partial class DiskCleanupViewModel(
IsLoading = true;
try
{
- var items = diskCleanupService.GetCleanupItems();
- CleanupItems = new ObservableCollection<CleanupItem>(items);
+ var items = DiskCleanupService.GetCleanupItems();
+ CleanupItems = new ObservableCollection<CleanupItem>(items.ToArray());
_originalOrder = [.. items];
foreach (var item in CleanupItems)
@@ -76,6 +76,8 @@ public partial class DiskCleanupViewModel(
// Automatically start scanning
await ScanAsync();
+
+ CleanupItems = new ObservableCollection<CleanupItem>(CleanupItems.OrderByDescending(i => i.SizeBytes).ToArray());
}
[RelayCommand]
diff --git a/optimizerDuck/UI/ViewModels/Pages/StartupManagerViewModel.cs b/optimizerDuck/UI/ViewModels/Pages/StartupManagerViewModel.cs
index ff69941..e761356 100644
--- a/optimizerDuck/UI/ViewModels/Pages/StartupManagerViewModel.cs
+++ b/optimizerDuck/UI/ViewModels/Pages/StartupManagerViewModel.cs
@@ -81,11 +81,13 @@ public partial class StartupManagerViewModel : ViewModel
try
{
- var apps = await _startupManagerService.GetStartupAppsAsync();
- _allApps.AddRange(apps);
+ var appsTask = _startupManagerService.GetStartupAppsAsync();
+ var tasksTask = _startupManagerService.GetStartupTasksAsync();
- var tasks = await _startupManagerService.GetStartupTasksAsync();
- _allTasks.AddRange(tasks);
+ await Task.WhenAll(appsTask, tasksTask);
+
+ _allApps.AddRange(appsTask.Result);
+ _allTasks.AddRange(tasksTask.Result);
ApplyFilter();
}
diff --git a/optimizerDuck/UI/Views/Pages/StartupManagerPage.xaml b/optimizerDuck/UI/Views/Pages/StartupManagerPage.xaml
index 8f5893c..ba2fb90 100644
--- a/optimizerDuck/UI/Views/Pages/StartupManagerPage.xaml
+++ b/optimizerDuck/UI/Views/Pages/StartupManagerPage.xaml
@@ -216,6 +216,8 @@
<ui:ToggleSwitch
IsChecked="{Binding IsEnabled, Mode=TwoWay}"
Margin="0,0,16,0"
+ OffContent="{ext:Loc Common.Toggle.Off}"
+ OnContent="{ext:Loc Common.Toggle.On}"
VerticalAlignment="Center" />
<ui:SymbolIcon FontSize="16" Symbol="Open24" />
</StackPanel>
@@ -229,7 +231,7 @@
<!-- Scheduled Tasks Section -->
<ui:CardExpander
- Icon="{ui:SymbolIcon TaskListLtr24}"
+ Icon="{ui:SymbolIcon CalculatorArrowClockwise24}"
IsExpanded="True"
Margin="0,0,0,12"
Visibility="{Binding ViewModel.Tasks.Count, Converter={StaticResource GreaterThanZeroToVisibilityConverter}}">
@@ -289,6 +291,8 @@
<ui:ToggleSwitch
Grid.Column="1"
IsChecked="{Binding IsEnabled, Mode=TwoWay}"
+ OffContent="{ext:Loc Common.Toggle.Off}"
+ OnContent="{ext:Loc Common.Toggle.On}"
VerticalAlignment="Center" />
</Grid>
</Border>
diff --git a/optimizerDuck/UI/Views/Windows/MainWindow.xaml b/optimizerDuck/UI/Views/Windows/MainWindow.xaml
index 73b43c2..23b2b4b 100644
--- a/optimizerDuck/UI/Views/Windows/MainWindow.xaml
+++ b/optimizerDuck/UI/Views/Windows/MainWindow.xaml
@@ -1,40 +1,40 @@
<ui:FluentWindow
+ ExtendsContentIntoTitleBar="True"
+ Height="800"
+ SnapsToDevicePixels="True"
+ TextOptions.TextRenderingMode="ClearType"
+ Title="optimizerDuck"
+ UseLayoutRounding="True"
+ Width="1350"
+ WindowBackdropType="Mica"
+ WindowCornerPreference="Round"
+ WindowStartupLocation="CenterScreen"
+ d:DataContext="{d:DesignInstance windows:MainWindow}"
+ mc:Ignorable="d"
+ ui:Design.Background="Black"
+ ui:Design.Foreground="White"
x:Class="optimizerDuck.UI.Views.Windows.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:controls="clr-namespace:optimizerDuck.UI.Controls"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:extensions="clr-namespace:optimizerDuck.Common.Extensions"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:pages="clr-namespace:optimizerDuck.UI.Views.Pages"
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
- xmlns:controls="clr-namespace:optimizerDuck.UI.Controls"
xmlns:windows="clr-namespace:optimizerDuck.UI.Views.Windows"
- Title="optimizerDuck"
- Width="1350"
- Height="800"
- d:DataContext="{d:DesignInstance windows:MainWindow}"
- ui:Design.Background="Black"
- ui:Design.Foreground="White"
- ExtendsContentIntoTitleBar="True"
- SnapsToDevicePixels="True"
- TextOptions.TextRenderingMode="ClearType"
- UseLayoutRounding="True"
- WindowBackdropType="Mica"
- WindowCornerPreference="Round"
- WindowStartupLocation="CenterScreen"
- mc:Ignorable="d">
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Grid>
<ui:NavigationView
- x:Name="RootNavigation"
- Margin="0"
- Padding="42,0,42,0"
FrameMargin="0"
IsFooterSeparatorVisible="False"
IsPaneToggleVisible="True"
IsTopSeparatorVisible="False"
+ Margin="0"
OpenPaneLength="180"
+ Padding="42,0,42,0"
PaneDisplayMode="Left"
- TitleBar="{Binding ElementName=TitleBar, Mode=OneWay}">
+ TitleBar="{Binding ElementName=TitleBar, Mode=OneWay}"
+ x:Name="RootNavigation">
<ui:NavigationView.MenuItems>
<controls:FilledNavigationViewItem
Content="{extensions:Loc Sidebar.Dashboard}"
@@ -55,7 +55,7 @@
<controls:FilledNavigationViewItem
Content="{extensions:Loc Sidebar.StartupManager}"
- Icon="{ui:SymbolIcon WindowApps24}"
+ Icon="{ui:SymbolIcon WindowArrowUp24}"
TargetPageType="{x:Type pages:StartupManagerPage}" />
<controls:FilledNavigationViewItem
@@ -79,7 +79,7 @@
</ui:NavigationView.ContentOverlay>
</ui:NavigationView>
- <ui:TitleBar x:Name="TitleBar" Title="optimizerDuck">
+ <ui:TitleBar Title="optimizerDuck" x:Name="TitleBar">
<ui:TitleBar.Icon>
<ui:ImageIcon Source="pack://application:,,,/Resources/Images/Duck.png" />
</ui:TitleBar.Icon>
diff --git a/optimizerDuck/optimizerDuck.csproj b/optimizerDuck/optimizerDuck.csproj
index c6ad924..3b7d328 100644
--- a/optimizerDuck/optimizerDuck.csproj
+++ b/optimizerDuck/optimizerDuck.csproj
@@ -10,7 +10,7 @@
<Authors>fatDuck</Authors>
<ApplicationIcon>Logo.ico</ApplicationIcon>
<Company>fatDuck</Company>
- <FileVersion>2.3.1</FileVersion>
+ <FileVersion>2.4.0</FileVersion>
<Version>1.0.0</Version>
<Product>optimizerDuck</Product>
<Copyright>Copyright fatDuck 2026</Copyright>
@@ -59,10 +59,7 @@
</ItemGroup>
<ItemGroup>
- <None Remove="Resources\Images\Duck.png"/>
- <None Remove="Resources\Images\GitHubLogoBlack.png"/>
<Resource Include="Resources\Images\Duck.png"/>
- <None Remove="Resources\Images\Windows11.png"/>
<Resource Include="Resources\Images\GitHubLogoBlack.png"/>
<Resource Include="Resources\Images\GitHubLogoWhite.png"/>
<Resource Include="Resources\Images\DiscordLogo.png"/>