mirror of
https://github.com/MaSzyna-EU07/StarterNG.git
synced 2026-11-01 04:19:07 +01:00
Compare commits
2 Commits
dependabot
...
v1.4.166
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6948b13503 | ||
|
|
22c51ddf3c |
2
.github/workflows/dotnet.yml
vendored
2
.github/workflows/dotnet.yml
vendored
@@ -201,7 +201,7 @@ jobs:
|
||||
# handed out under the repository's name.
|
||||
- name: Upload artifact
|
||||
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
|
||||
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
||||
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
||||
with:
|
||||
name: ${{ matrix.artifact }}
|
||||
path: ${{ matrix.package }}
|
||||
|
||||
@@ -38,7 +38,7 @@ public partial class MainWindow : Window
|
||||
ExtendClientAreaToDecorationsHint = true;
|
||||
ExtendClientAreaTitleBarHeightHint = TitleBarHeight;
|
||||
|
||||
if (AppServices.Current.Settings.WindowMaximized)
|
||||
if (AppServices.Current.Settings.WindowMaximized || wantsMaximized())
|
||||
WindowState = WindowState.Maximized;
|
||||
|
||||
PropertyChanged += (_, e) =>
|
||||
@@ -309,6 +309,19 @@ 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)
|
||||
@@ -627,6 +640,6 @@ public partial class MainWindow : Window
|
||||
if (!IsVisible)
|
||||
Show();
|
||||
if (WindowState == WindowState.Minimized)
|
||||
WindowState = WindowState.Normal;
|
||||
WindowState = wantsMaximized() ? WindowState.Maximized : WindowState.Normal;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user