Skip to content

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

feat: update proj to 2.12.0

fatDuck0172b79ba90f
diff --git a/optimizerDuck/Domain/Features/Categories/Desktop.cs b/optimizerDuck/Domain/Features/Categories/Desktop.cs
index 9f7d60f..3a1af82 100644
--- a/optimizerDuck/Domain/Features/Categories/Desktop.cs
+++ b/optimizerDuck/Domain/Features/Categories/Desktop.cs
@@ -149,22 +149,41 @@ public class Desktop : IFeatureCategory
public override Task<bool> GetStateAsync()
{
- var value = RegistryService.Read<string>(new RegistryItem(Path, "29"));
- return Task.FromResult(string.Equals(value, "", StringComparison.OrdinalIgnoreCase));
+ var value = RegistryService.Read<string>(
+ new RegistryItem(Path, "29")
+ );
+
+ return Task.FromResult(
+ !string.Equals(
+ value,
+ @"%windir%\System32\shell32.dll,-50",
+ StringComparison.OrdinalIgnoreCase
+ )
+ );
}
public override async Task EnableAsync()
{
- RegistryService.Write(
- new RegistryItem(Path, "29", @"%windir%\System32\shell32.dll,-50")
+ // show arrow
+ RegistryService.DeleteValue(
+ new RegistryItem(Path, "29")
);
+
if (NeedsPostAction)
await ExecutePostActionAsync();
}
public override async Task DisableAsync()
{
- RegistryService.DeleteValue(new RegistryItem(Path, "29"));
+ // hide arrow
+ RegistryService.Write(
+ new RegistryItem(
+ Path,
+ "29",
+ @"%windir%\System32\shell32.dll,-50"
+ )
+ );
+
if (NeedsPostAction)
await ExecutePostActionAsync();
}
diff --git a/optimizerDuck/optimizerDuck.csproj b/optimizerDuck/optimizerDuck.csproj
index d3c9f3e..bc8fe74 100644
--- a/optimizerDuck/optimizerDuck.csproj
+++ b/optimizerDuck/optimizerDuck.csproj
@@ -9,8 +9,8 @@
<Authors>fatDuck</Authors>
<ApplicationIcon>Logo.ico</ApplicationIcon>
<Company>fatDuck</Company>
- <FileVersion>2.11.3</FileVersion>
- <Version>2.11.3</Version>
+ <FileVersion>2.12.0</FileVersion>
+ <Version>2.12.0</Version>
<Product>optimizerDuck</Product>
<Copyright>Copyright fatDuck 2026</Copyright>
<AssemblyTitle>optimizerDuck</AssemblyTitle>