mirror of
https://github.com/MaSzyna-EU07/StarterNG.git
synced 2026-11-01 12:22:09 +01:00
Compare commits
1 Commits
main
...
dependabot
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2d7de085a7 |
@@ -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" />
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user