Skip to content

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

fix: fix restore point request for every category

fatDuck323b24d3dc93
diff --git a/optimizerDuck.Test/optimizerDuck.Test.csproj b/optimizerDuck.Test/optimizerDuck.Test.csproj
index ea85952..d09c85c 100644
--- a/optimizerDuck.Test/optimizerDuck.Test.csproj
+++ b/optimizerDuck.Test/optimizerDuck.Test.csproj
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <TargetFramework>net10.0-windows</TargetFramework>
+ <TargetFramework>net10.0-windows10.0.17763.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
diff --git a/optimizerDuck/Resources/Languages/Translations.resx b/optimizerDuck/Resources/Languages/Translations.resx
index 1a595a4..75659f4 100644
--- a/optimizerDuck/Resources/Languages/Translations.resx
+++ b/optimizerDuck/Resources/Languages/Translations.resx
@@ -841,4 +841,11 @@ This ensures you can always go back if anything goes wrong.]]></value>
<data name="Settings.Bloatware.RemoveProvisioned.Description" xml:space="preserve">
<value>When removing installed AppX packages, also remove the corresponding Provisioned packages to prevent automatic reinstallation for new users.</value>
</data>
+ <data name="Dashboard.UpdateInfoBar.Message" xml:space="preserve">
+ <value>optimizerDuck (v{0}) is available!
+Update now to enjoy the latest features, improvements, and bug fixes.</value>
+ </data>
+ <data name="Dashboard.UpdateInfoBar.Title" xml:space="preserve">
+ <value>New Update Ready</value>
+ </data>
</root>
\ No newline at end of file
diff --git a/optimizerDuck/Services/OptimizationService.cs b/optimizerDuck/Services/OptimizationService.cs
index 3b5b6f2..bf010ef 100644
--- a/optimizerDuck/Services/OptimizationService.cs
+++ b/optimizerDuck/Services/OptimizationService.cs
@@ -29,6 +29,8 @@ public class OptimizationService(
private static readonly object _cacheLock = new();
private readonly ILogger _logger = logger;
+ public bool IsRequestedRestorePoint { get; set; }
+
public async Task<RestorePointResult> CreateRestorePointAsync()
{
var dialogViewModel = new ProcessingViewModel();
@@ -72,8 +74,6 @@ public class OptimizationService(
if (result.ExitCode == 0)
return RestorePointResult.Success;
-
-
if (!Regex.IsMatch(result.Stderr,
@"\b(is\s+disabled|system\s+restore\s+is\s+disabled|disabled\s+by\s+group\s+policy|disableconfig|disablesr|protection\s+is\s+off)\b",
RegexOptions.IgnoreCase | RegexOptions.CultureInvariant))
@@ -126,9 +126,6 @@ public class OptimizationService(
return RestorePointResult.Failed;
}
-
-
-
_logger.LogError("Failed to create restore point: {Message}", result.Stderr);
return RestorePointResult.Failed;
}
diff --git a/optimizerDuck/Services/UpdaterService.cs b/optimizerDuck/Services/UpdaterService.cs
index a569c0e..133d2ad 100644
--- a/optimizerDuck/Services/UpdaterService.cs
+++ b/optimizerDuck/Services/UpdaterService.cs
@@ -23,7 +23,7 @@ public class UpdaterService
_logger = logger;
}
- public async Task<bool> CheckForUpdatesAsync()
+ public async Task<(bool Result, string? Version)> CheckForUpdatesAsync()
{
_logger.LogInformation("Checking for updates (Current version: {CurrentVersion})",
Shared.FileVersion);
@@ -37,7 +37,7 @@ public class UpdaterService
if (latestRelease == null || string.IsNullOrEmpty(latestRelease.TagName))
{
_logger.LogWarning("Could not retrieve latest release information");
- return false;
+ return (false, null);
}
// "v1.1.0" -> "1.1.0"
@@ -55,7 +55,7 @@ public class UpdaterService
{
_logger.LogWarning("Could not parse latest release version: {LatestReleaseTagName}",
latestRelease.TagName);
- return false;
+ return (false, null);
}
var currentVersion = Version.Parse(Shared.FileVersion);
@@ -70,21 +70,21 @@ public class UpdaterService
if (updateExecutableAsset == null)
{
_logger.LogWarning("No update executable (.exe) found in the latest release");
- return false;
+ return (false, null);
}
_logger.LogInformation("A new version ({LatestVersion}) is available!", latestVersionStr);
- return true;
+ return (true, latestVersionStr);
}
_logger.LogInformation("You are running the latest version");
- return false;
+ return (false, null);
}
catch (Exception ex)
{
_logger.LogError(ex, "Error checking for updates");
- return false;
+ return (false, null);
}
}
}
diff --git a/optimizerDuck/UI/ViewModels/Optimizer/OptimizationCategoryViewModel.cs b/optimizerDuck/UI/ViewModels/Optimizer/OptimizationCategoryViewModel.cs
index 1b46553..1231a0a 100644
--- a/optimizerDuck/UI/ViewModels/Optimizer/OptimizationCategoryViewModel.cs
+++ b/optimizerDuck/UI/ViewModels/Optimizer/OptimizationCategoryViewModel.cs
@@ -25,8 +25,6 @@ public partial class OptimizationCategoryViewModel : ViewModel
private readonly OptimizationService _optimizationService;
private readonly ISnackbarService _snackbarService;
- private bool _isApplied;
-
[ObservableProperty] private ObservableCollection<IOptimization> _optimizations = [];
public OptimizationCategoryViewModel(
@@ -178,6 +176,7 @@ public partial class OptimizationCategoryViewModel : ViewModel
TimeSpan.FromSeconds(5)
);
break;
+
case RestorePointResult.FrequencyLimitReached:
_snackbarService.Show(
Translations.RestorePoint_Title,
@@ -187,6 +186,7 @@ public partial class OptimizationCategoryViewModel : ViewModel
TimeSpan.FromSeconds(5)
);
break;
+
case RestorePointResult.Failed:
default:
_snackbarService.Show(
@@ -238,7 +238,7 @@ public partial class OptimizationCategoryViewModel : ViewModel
// Keep a stable reference to the previous state in case we need to roll back UI changes.
var wasApplied = await OptimizationService.IsAppliedAsync(optimization.Id);
- if (!_isApplied)
+ if (_optimizationService.IsRequestedRestorePoint)
{
if (!await HandleRestorePointAsync())
{
@@ -246,7 +246,7 @@ public partial class OptimizationCategoryViewModel : ViewModel
return;
}
- _isApplied = true;
+ _optimizationService.IsRequestedRestorePoint = true;
}
try
diff --git a/optimizerDuck/UI/ViewModels/Pages/DashboardViewModel.cs b/optimizerDuck/UI/ViewModels/Pages/DashboardViewModel.cs
index 334fdb5..1fef3eb 100644
--- a/optimizerDuck/UI/ViewModels/Pages/DashboardViewModel.cs
+++ b/optimizerDuck/UI/ViewModels/Pages/DashboardViewModel.cs
@@ -27,6 +27,7 @@ public partial class DashboardViewModel : ViewModel
private bool _isInitialized;
[ObservableProperty] private bool _isLoading;
+ [ObservableProperty] private string _latestVersion;
private bool _isUpdateInfoOpen;
[ObservableProperty] private RamInfo _runtimeRam = RamInfo.Unknown;
@@ -77,10 +78,12 @@ public partial class DashboardViewModel : ViewModel
if (!_isInitialized)
{
_systemInfoService.LogSummary();
- if (await _updaterService.CheckForUpdatesAsync())
+ var (result, version) = await _updaterService.CheckForUpdatesAsync();
+ if (result)
{
_updateNotified = true;
IsUpdateInfoOpen = true;
+ LatestVersion = version;
}
_isInitialized = true;
@@ -96,7 +99,6 @@ public partial class DashboardViewModel : ViewModel
return base.OnNavigatedFromAsync();
}
-
#region Property Changed
private void OnThemeChanged(ApplicationTheme currentApplicationTheme, Color systemAccent)
@@ -104,7 +106,7 @@ public partial class DashboardViewModel : ViewModel
if (CurrentApplicationTheme != currentApplicationTheme) CurrentApplicationTheme = currentApplicationTheme;
}
- #endregion
+ #endregion Property Changed
#region Commands
@@ -204,7 +206,7 @@ public partial class DashboardViewModel : ViewModel
}
}
- #endregion
+ #endregion Commands
#region Helpers
@@ -264,5 +266,5 @@ public partial class DashboardViewModel : ViewModel
}
}
- #endregion
+ #endregion Helpers
}
\ No newline at end of file
diff --git a/optimizerDuck/UI/Views/Pages/DashboardPage.xaml b/optimizerDuck/UI/Views/Pages/DashboardPage.xaml
index bca3236..1f01cc4 100644
--- a/optimizerDuck/UI/Views/Pages/DashboardPage.xaml
+++ b/optimizerDuck/UI/Views/Pages/DashboardPage.xaml
@@ -1,29 +1,29 @@
<Page
- Foreground="{DynamicResource TextFillColorPrimaryBrush}"
- Margin="0,32,0,0"
- ScrollViewer.CanContentScroll="False"
- Title="Dashboard"
- d:DataContext="{d:DesignInstance pages:DashboardPage}"
- d:DesignHeight="650"
- d:DesignWidth="800"
- mc:Ignorable="d"
- ui:Design.Background="Black"
- ui:Design.Foreground="White"
x:Class="optimizerDuck.UI.Views.Pages.DashboardPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:converters="clr-namespace:optimizerDuck.Common.Helpers.Converters"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:ext="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:x="http://schemas.microsoft.com/winfx/2006/xaml">
+ Title="Dashboard"
+ Margin="0,32,0,0"
+ d:DataContext="{d:DesignInstance pages:DashboardPage}"
+ d:DesignHeight="650"
+ d:DesignWidth="800"
+ ui:Design.Background="Black"
+ ui:Design.Foreground="White"
+ Foreground="{DynamicResource TextFillColorPrimaryBrush}"
+ ScrollViewer.CanContentScroll="False"
+ mc:Ignorable="d">
<Page.Resources>
<converters:BooleanToVisibilityConverter x:Key="BoolToVisibilityConverter" />
<converters:MBToGBConverter x:Key="MBToGBConverter" />
- <converters:GreaterThanNumberToVisibilityConverter Threshold="1" x:Key="GreaterThanOneToVisibilityConverter" />
- <converters:MinusNumberConverter NumberToMinus="1" x:Key="MinusOneConverter" />
+ <converters:GreaterThanNumberToVisibilityConverter x:Key="GreaterThanOneToVisibilityConverter" Threshold="1" />
+ <converters:MinusNumberConverter x:Key="MinusOneConverter" NumberToMinus="1" />
<converters:ThemeToGitHubIconConverter x:Key="ThemeToGitHubIconConverter" />
</Page.Resources>
@@ -36,13 +36,13 @@
<Border Background="{DynamicResource ApplicationBackgroundBrush}" Opacity="0.8" />
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
<ui:ProgressRing
+ Width="60"
Height="60"
- IsIndeterminate="True"
- Width="60" />
+ IsIndeterminate="True" />
<ui:TextBlock
- FontTypography="Subtitle"
- HorizontalAlignment="Center"
Margin="0,16,0,0"
+ HorizontalAlignment="Center"
+ FontTypography="Subtitle"
Text="{ext:Loc Dashboard.SystemInfo.Loading}"
TextWrapping="Wrap" />
</StackPanel>
@@ -51,11 +51,11 @@
<!-- Header -->
<StackPanel Margin="0,0,0,20">
<ui:InfoBar
- IsOpen="{Binding ViewModel.IsUpdateInfoOpen, Mode=TwoWay}"
Margin="0,0,0,10"
- Message="A new version of optimizerDuck is available."
- Severity="Warning"
- Title="Update Available" />
+ IsOpen="{Binding ViewModel.IsUpdateInfoOpen, Mode=TwoWay}"
+ Message="{ext:Loc Dashboard.UpdateInfoBar.Message,
+ {Binding ViewModel.LatestVersion}}"
+ Severity="Warning" />
<Grid ColumnDefinitions="*,Auto">
<ui:TextBlock
FontTypography="Title"
@@ -90,14 +90,14 @@
<!-- Action Cards -->
<UniformGrid
- Columns="3"
Grid.Row="1"
- Margin="0,0,0,20">
+ Margin="0,0,0,20"
+ Columns="3">
<ui:CardAction
- Command="{Binding ViewModel.OpenActionCommand}"
- CommandParameter="Discord"
Margin="0,0,5,0"
- VerticalAlignment="Stretch">
+ VerticalAlignment="Stretch"
+ Command="{Binding ViewModel.OpenActionCommand}"
+ CommandParameter="Discord">
<ui:CardAction.Icon>
<ui:ImageIcon Height="25" Source="pack://application:,,,/Resources/Images/DiscordLogo.png" />
</ui:CardAction.Icon>
@@ -112,10 +112,10 @@
</ui:CardAction>
<ui:CardAction
- Command="{Binding ViewModel.OpenActionCommand}"
- CommandParameter="GitHub"
Margin="5,0,5,0"
- VerticalAlignment="Stretch">
+ VerticalAlignment="Stretch"
+ Command="{Binding ViewModel.OpenActionCommand}"
+ CommandParameter="GitHub">
<ui:CardAction.Icon>
<ui:ImageIcon Height="40" Source="{Binding ViewModel.CurrentApplicationTheme, Converter={StaticResource ThemeToGitHubIconConverter}}" />
</ui:CardAction.Icon>
@@ -130,12 +130,12 @@
</ui:CardAction>
<ui:CardAction
+ Margin="5,0,0,0"
+ VerticalAlignment="Stretch"
Command="{Binding ViewModel.OpenActionCommand}"
CommandParameter="Support"
Icon="{ui:SymbolIcon Heart24,
- Filled=True}"
- Margin="5,0,0,0"
- VerticalAlignment="Stretch">
+ Filled=True}">
<StackPanel>
<ui:TextBlock FontTypography="BodyStrong" Text="{ext:Loc Dashboard.Actions.SupportMe.Title}" />
<ui:TextBlock
@@ -149,17 +149,17 @@
<ScrollViewer
Grid.Row="2"
- HorizontalScrollBarVisibility="Disabled"
Padding="20,0"
+ HorizontalScrollBarVisibility="Disabled"
VerticalScrollBarVisibility="Auto">
<StackPanel>
<!-- System Info Cards -->
<UniformGrid Columns="2" Rows="2">
<!-- Operating System -->
<ui:CardControl
- Icon="{ui:SymbolIcon Tv24}"
Margin="0,0,5,5"
- VerticalAlignment="Stretch">
+ VerticalAlignment="Stretch"
+ Icon="{ui:SymbolIcon Tv24}">
<ui:CardControl.Header>
<Grid>
<Grid.RowDefinitions>
@@ -181,17 +181,17 @@
Margin="0,8,0,0"
Orientation="Horizontal">
<Border
- Background="{DynamicResource CardBackgroundFillColorSecondaryBrush}"
- CornerRadius="4"
Margin="0,0,4,4"
- Padding="6,3">
+ Padding="6,3"
+ Background="{DynamicResource CardBackgroundFillColorSecondaryBrush}"
+ CornerRadius="4">
<ui:TextBlock FontTypography="Caption" Text="{Binding ViewModel.SystemInfo.Os.BuildNumber, StringFormat='{}Build {0}'}" />
</Border>
<Border
- Background="{DynamicResource CardBackgroundFillColorSecondaryBrush}"
- CornerRadius="4"
Margin="0,0,4,4"
- Padding="6,3">
+ Padding="6,3"
+ Background="{DynamicResource CardBackgroundFillColorSecondaryBrush}"
+ CornerRadius="4">
<ui:TextBlock FontTypography="Caption" Text="{Binding ViewModel.SystemInfo.Os.DeviceType}" />
</Border>
</WrapPanel>
@@ -201,9 +201,9 @@
<!-- CPU -->
<ui:CardControl
- Icon="{ui:SymbolIcon DeveloperBoard24}"
Margin="5,0,0,5"
- VerticalAlignment="Stretch">
+ VerticalAlignment="Stretch"
+ Icon="{ui:SymbolIcon DeveloperBoard24}">
<ui:CardControl.Header>
<Grid>
<Grid.RowDefinitions>
@@ -230,20 +230,20 @@
Margin="0,8,0,0"
Orientation="Horizontal">
<Border
- Background="{DynamicResource CardBackgroundFillColorSecondaryBrush}"
- CornerRadius="4"
Margin="0,0,4,4"
- Padding="6,3">
+ Padding="6,3"
+ Background="{DynamicResource CardBackgroundFillColorSecondaryBrush}"
+ CornerRadius="4">
<ui:TextBlock FontTypography="Caption">
<Run Text="{Binding ViewModel.SystemInfo.Cpu.CurrentClockMHz}" />
<Run Text="MHz" />
</ui:TextBlock>
</Border>
<Border
- Background="{DynamicResource CardBackgroundFillColorSecondaryBrush}"
- CornerRadius="4"
Margin="0,0,4,4"
- Padding="6,3">
+ Padding="6,3"
+ Background="{DynamicResource CardBackgroundFillColorSecondaryBrush}"
+ CornerRadius="4">
<ui:TextBlock FontTypography="Caption">
<Run Text="L2:" />
<Run Text="{Binding ViewModel.SystemInfo.Cpu.L2CacheKB}" />
@@ -251,10 +251,10 @@
</ui:TextBlock>
</Border>
<Border
- Background="{DynamicResource CardBackgroundFillColorSecondaryBrush}"
- CornerRadius="4"
Margin="0,0,4,4"
- Padding="6,3">
+ Padding="6,3"
+ Background="{DynamicResource CardBackgroundFillColorSecondaryBrush}"
+ CornerRadius="4">
<ui:TextBlock FontTypography="Caption">
<Run Text="L3:" />
<Run Text="{Binding ViewModel.SystemInfo.Cpu.L3CacheKB}" />
@@ -268,9 +268,9 @@
<!-- RAM -->
<ui:CardControl
- Icon="{ui:SymbolIcon Memory16}"
Margin="0,5,5,0"
- VerticalAlignment="Stretch">
+ VerticalAlignment="Stretch"
+ Icon="{ui:SymbolIcon Memory16}">
<ui:CardControl.Header>
<Grid>
<Grid.RowDefinitions>
@@ -303,9 +303,9 @@
Margin="0,8,0,0"
Orientation="Horizontal">
<Border
+ Padding="6,3"
Background="{DynamicResource CardBackgroundFillColorSecondaryBrush}"
- CornerRadius="4"
- Padding="6,3">
+ CornerRadius="4">
<ui:TextBlock FontTypography="Caption">
<Run Text="{ext:Loc Dashboard.SystemInfo.Ram.Modules, {Binding ViewModel.RuntimeRam.Modules.Count, Mode=OneWay}}" />
</ui:TextBlock>
@@ -317,9 +317,9 @@
<!-- GPU -->
<ui:CardControl
- Icon="{ui:SymbolIcon NetworkAdapter16}"
Margin="5,5,0,0"
- VerticalAlignment="Stretch">
+ VerticalAlignment="Stretch"
+ Icon="{ui:SymbolIcon NetworkAdapter16}">
<ui:CardControl.Header>
<Grid>
<Grid.RowDefinitions>
@@ -343,30 +343,30 @@
Margin="0,8,0,0"
Orientation="Horizontal">
<Border
- Background="{DynamicResource CardBackgroundFillColorSecondaryBrush}"
- CornerRadius="4"
Margin="0,0,4,4"
- Padding="6,3">
+ Padding="6,3"
+ Background="{DynamicResource CardBackgroundFillColorSecondaryBrush}"
+ CornerRadius="4">
<ui:TextBlock FontTypography="Caption">
<Run Text="{Binding ViewModel.SystemInfo.PrimaryGpu.MemoryMB, Converter={StaticResource MBToGBConverter}}" />
<Run Text="GB" />
</ui:TextBlock>
</Border>
<Border
- Background="{DynamicResource CardBackgroundFillColorSecondaryBrush}"
- CornerRadius="4"
Margin="0,0,4,4"
- Padding="6,3">
+ Padding="6,3"
+ Background="{DynamicResource CardBackgroundFillColorSecondaryBrush}"
+ CornerRadius="4">
<ui:TextBlock
FontTypography="Caption"
Text="{Binding ViewModel.SystemInfo.PrimaryGpu.DriverVersion}"
TextTrimming="CharacterEllipsis" />
</Border>
<Border
- Background="{DynamicResource CardBackgroundFillColorSecondaryBrush}"
- CornerRadius="4"
Margin="0,0,4,4"
Padding="6,3"
+ Background="{DynamicResource CardBackgroundFillColorSecondaryBrush}"
+ CornerRadius="4"
Visibility="{Binding ViewModel.SystemInfo.Gpus.Count, Converter={StaticResource GreaterThanOneToVisibilityConverter}}">
<ui:TextBlock FontTypography="Caption">
<Run Text="{ext:Loc Dashboard.SystemInfo.Gpu.More, {Binding ViewModel.SystemInfo.Gpus.Count, Mode=OneWay, Converter={StaticResource MinusOneConverter}}}" />
@@ -380,8 +380,8 @@
<!-- Storage Section -->
<ui:TextBlock
- FontTypography="BodyStrong"
Margin="0,20,0,8"
+ FontTypography="BodyStrong"
Text="{ext:Loc Dashboard.SystemInfo.Storage.Header}" />
<ItemsControl ItemsSource="{Binding ViewModel.SystemInfo.Disk.Volumes}">
@@ -413,22 +413,22 @@
<!-- Drive Letter and Label -->
<StackPanel Grid.Row="0" Orientation="Horizontal">
<ui:TextBlock
- FontTypography="BodyStrong"
Margin="0,0,5,0"
+ FontTypography="BodyStrong"
Text="{Binding Letter, StringFormat='({0})'}" />
<ui:TextBlock
- FontTypography="Caption"
Margin="0,0,5,0"
- Text="{Binding Label}"
- VerticalAlignment="Center" />
+ VerticalAlignment="Center"
+ FontTypography="Caption"
+ Text="{Binding Label}" />
<Border
- Background="{DynamicResource SystemFillColorAttentionBrush}"
- CornerRadius="4"
Margin="0,0,4,0"
Padding="5,2"
VerticalAlignment="Center"
+ Background="{DynamicResource SystemFillColorAttentionBrush}"
+ CornerRadius="4"
Visibility="{Binding SystemDrive, Converter={StaticResource BoolToVisibilityConverter}}">
<ui:TextBlock
FontTypography="Caption"
@@ -437,11 +437,11 @@
</Border>
<Border
- Background="{DynamicResource CardBackgroundFillColorSecondaryBrush}"
- CornerRadius="4"
Margin="0,0,4,0"
Padding="5,2"
- VerticalAlignment="Center">
+ VerticalAlignment="Center"
+ Background="{DynamicResource CardBackgroundFillColorSecondaryBrush}"
+ CornerRadius="4">
<ui:TextBlock FontTypography="Caption" Text="{Binding MediaType}">
<ui:TextBlock.Style>
<Style TargetType="ui:TextBlock">
@@ -459,20 +459,20 @@
</Border>
<Border
- Background="{DynamicResource CardBackgroundFillColorSecondaryBrush}"
- CornerRadius="4"
Padding="5,2"
- VerticalAlignment="Center">
+ VerticalAlignment="Center"
+ Background="{DynamicResource CardBackgroundFillColorSecondaryBrush}"
+ CornerRadius="4">
<ui:TextBlock FontTypography="Caption" Text="{Binding FileSystem}" />
</Border>
</StackPanel>
<!-- Model Information -->
<ui:TextBlock
- Appearance="Secondary"
- FontTypography="Caption"
Grid.Row="1"
Margin="0,4,0,0"
+ Appearance="Secondary"
+ FontTypography="Caption"
Text="{Binding Model}"
TextTrimming="CharacterEllipsis"
Visibility="{Binding Model, Converter={StaticResource NullToVisibilityConverter}}" />
diff --git a/optimizerDuck/optimizerDuck.csproj b/optimizerDuck/optimizerDuck.csproj
index 955895f..f8c46e7 100644
--- a/optimizerDuck/optimizerDuck.csproj
+++ b/optimizerDuck/optimizerDuck.csproj
@@ -2,7 +2,7 @@
<PropertyGroup>
<OutputType>WinExe</OutputType>
- <TargetFramework>net10.0-windows</TargetFramework>
+ <TargetFramework>net10.0-windows10.0.17763.0</TargetFramework>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
@@ -10,7 +10,7 @@
<Authors>fatDuck</Authors>
<ApplicationIcon>Logo.ico</ApplicationIcon>
<Company>fatDuck</Company>
- <FileVersion>2.1.0</FileVersion>
+ <FileVersion>2.1.1</FileVersion>
<Version>1.0.0</Version>
<Product>optimizerDuck</Product>
<Copyright>Copyright fatDuck 2026</Copyright>
@@ -18,6 +18,7 @@
<AssemblyDescription>Free, open-source Windows optimization tool for performance, privacy, and simplicity.</AssemblyDescription>
<NeutralLanguage>en-US</NeutralLanguage>
<ApplicationManifest>app.manifest</ApplicationManifest>
+ <SupportedOSPlatformVersion>10.0.17763.0</SupportedOSPlatformVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
@@ -38,17 +39,17 @@
</ItemGroup>
<ItemGroup>
- <PackageReference Include="CommunityToolkit.Mvvm" Version="8.4.0"/>
- <PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="10.0.3"/>
- <PackageReference Include="Microsoft.Extensions.Hosting" Version="10.0.3"/>
- <PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="10.0.3"/>
- <PackageReference Include="Newtonsoft.Json" Version="13.0.4"/>
- <PackageReference Include="Serilog" Version="4.3.1"/>
- <PackageReference Include="Serilog.Extensions.Hosting" Version="10.0.0"/>
- <PackageReference Include="Serilog.Sinks.File" Version="7.0.0"/>
- <PackageReference Include="System.Management.Automation" Version="7.5.4"/>
- <PackageReference Include="WPF-UI" Version="4.2.0"/>
- <PackageReference Include="WPF-UI.DependencyInjection" Version="4.2.0"/>
+ <PackageReference Include="CommunityToolkit.Mvvm" Version="8.4.0" />
+ <PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="10.0.3" />
+ <PackageReference Include="Microsoft.Extensions.Hosting" Version="10.0.3" />
+ <PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="10.0.3" />
+ <PackageReference Include="Newtonsoft.Json" Version="13.0.4" />
+ <PackageReference Include="Serilog" Version="4.3.1" />
+ <PackageReference Include="Serilog.Extensions.Hosting" Version="10.0.0" />
+ <PackageReference Include="Serilog.Sinks.File" Version="7.0.0" />
+ <PackageReference Include="System.Management.Automation" Version="7.5.4" />
+ <PackageReference Include="WPF-UI" Version="4.2.0" />
+ <PackageReference Include="WPF-UI.DependencyInjection" Version="4.2.0" />
</ItemGroup>
<ItemGroup>
@@ -67,13 +68,13 @@
</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"/>
+ <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" />
</ItemGroup>
</Project>