1 Commits

Author SHA1 Message Date
dependabot[bot]
2d7de085a7 Bump coverlet.collector from 6.0.2 to 10.1.0
---
updated-dependencies:
- dependency-name: coverlet.collector
  dependency-version: 10.1.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-06 18:32:44 +00:00
2 changed files with 3 additions and 16 deletions

View File

@@ -8,7 +8,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="coverlet.collector" Version="6.0.2" />
<PackageReference Include="coverlet.collector" Version="10.1.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageReference Include="xunit" Version="2.9.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2" />

View File

@@ -38,7 +38,7 @@ public partial class MainWindow : Window
ExtendClientAreaToDecorationsHint = true;
ExtendClientAreaTitleBarHeightHint = TitleBarHeight;
if (AppServices.Current.Settings.WindowMaximized || wantsMaximized())
if (AppServices.Current.Settings.WindowMaximized)
WindowState = WindowState.Maximized;
PropertyChanged += (_, e) =>
@@ -309,19 +309,6 @@ public partial class MainWindow : Window
menu.Open(HelpButton);
}
private bool wantsMaximized()
{
// make sure the window fills the whole screen on gamescope sessions
if (Environment.GetEnvironmentVariable("XDG_CURRENT_DESKTOP") == "gamescope")
return true;
// catch being launched via Steam Big Picture mode as well
if (Environment.GetEnvironmentVariable("SteamGamepadUI") == "1")
return true;
return false;
}
private void linkClick(object? sender, RoutedEventArgs e)
{
if (sender is not Button btn)
@@ -640,6 +627,6 @@ public partial class MainWindow : Window
if (!IsVisible)
Show();
if (WindowState == WindowState.Minimized)
WindowState = wantsMaximized() ? WindowState.Maximized : WindowState.Normal;
WindowState = WindowState.Normal;
}
}