Revert Maximized = Fullscreen changes, fixes #20

This commit is contained in:
Evan Husted 2024-10-21 02:42:32 -05:00
parent f3efada444
commit 509f6d738c
4 changed files with 14 additions and 16 deletions

View file

@ -964,10 +964,10 @@ namespace Ryujinx.Ava
{
if (_viewModel.StartGamesInFullscreen)
{
_viewModel.WindowState = MainWindow.FullScreenWindowState;
_viewModel.WindowState = WindowState.FullScreen;
}
if (_viewModel.WindowState == MainWindow.FullScreenWindowState)
if (_viewModel.WindowState is WindowState.FullScreen)
{
_viewModel.ShowMenuAndStatusBar = false;
}
@ -1138,7 +1138,7 @@ namespace Ryujinx.Ava
Dispatcher.UIThread.Post(() =>
{
if (_keyboardInterface.GetKeyboardStateSnapshot().IsPressed(Key.Delete) && _viewModel.WindowState != MainWindow.FullScreenWindowState)
if (_keyboardInterface.GetKeyboardStateSnapshot().IsPressed(Key.Delete) && _viewModel.WindowState is not WindowState.FullScreen)
{
Device.Processes.ActiveApplication.DiskCacheLoadState?.Cancel();
}