Wire "Start games in fullscreen" option to use the new fullscreen behaviour (#113)

Final (hopefully) fix for https://github.com/Ryubing/Issues/issues/415

Reviewed-on: https://git.ryujinx.app/projects/Ryubing/pulls/113
This commit is contained in:
Babib3l
2026-05-27 12:25:09 +00:00
committed by sh0inx
parent de70f66a27
commit c04d15eaa1

View File

@@ -1094,10 +1094,10 @@ namespace Ryujinx.Ava.Systems
{ {
Dispatcher.UIThread.InvokeAsync(() => Dispatcher.UIThread.InvokeAsync(() =>
{ {
if (_viewModel.StartGamesInFullscreen) if (_viewModel.StartGamesInFullscreen && _viewModel.WindowState is not WindowState.FullScreen)
{ {
_viewModel.WindowState = WindowState.FullScreen; // Use the view model toggle so decoration ordering matches user toggles.
_viewModel.Window.TitleBar.ExtendsContentIntoTitleBar = true; _viewModel.ToggleFullscreen();
} }
if (_viewModel.WindowState is WindowState.FullScreen || _viewModel.StartGamesWithoutUi) if (_viewModel.WindowState is WindowState.FullScreen || _viewModel.StartGamesWithoutUi)