UI: Fix status bar showing in fullscreen mode during gameplay

This commit is contained in:
KeatonTheBot 2025-01-02 18:44:54 -06:00
parent ef4ea7794b
commit 3bade9d6c1

View file

@ -2155,7 +2155,7 @@ namespace Ryujinx.Ava.UI.ViewModels
LastFullscreenToggle = Environment.TickCount64; LastFullscreenToggle = Environment.TickCount64;
if (WindowState is not WindowState.Normal) if (WindowState == WindowState.FullScreen)
{ {
WindowState = WindowState.Normal; WindowState = WindowState.Normal;
@ -2166,7 +2166,7 @@ namespace Ryujinx.Ava.UI.ViewModels
} }
else else
{ {
WindowState = MainWindow.FullScreenWindowState; WindowState = WindowState.FullScreen;
if (IsGameRunning) if (IsGameRunning)
{ {
@ -2174,7 +2174,7 @@ namespace Ryujinx.Ava.UI.ViewModels
} }
} }
IsFullScreen = WindowState == MainWindow.FullScreenWindowState; IsFullScreen = WindowState == WindowState.FullScreen;
} }
public static void SaveConfig() public static void SaveConfig()