Qt: Don't exit fullscreen when switching to game list with RenderToSeparateWindow

Amends 24a16db4376baccaf533fd4860c493a9c6d5f921
This commit is contained in:
Davide Pesavento 2025-07-18 18:44:02 -04:00 committed by Connor McLaughlin
parent 4c12dc8ab9
commit f446e24b20

View File

@ -2182,8 +2182,9 @@ bool MainWindow::shouldHideMainWindow() const
void MainWindow::switchToGameListView() void MainWindow::switchToGameListView()
{ {
// Normally, we'd never end up here. But on MacOS, the global menu is accessible while fullscreen. if (QtHost::CanRenderToMainWindow())
exitFullscreen(true); // Normally, we'd never end up here. But on MacOS, the global menu is accessible while fullscreen.
exitFullscreen(true);
if (!isShowingGameList()) if (!isShowingGameList())
{ {
@ -3033,8 +3034,7 @@ void MainWindow::onToolsCoverDownloaderTriggered()
{ {
// This can be invoked via big picture, so exit fullscreen. // This can be invoked via big picture, so exit fullscreen.
// Wait for the fullscreen request to actually go through, otherwise the downloader appears behind the main window. // Wait for the fullscreen request to actually go through, otherwise the downloader appears behind the main window.
if (isRenderingFullscreen()) exitFullscreen(true);
exitFullscreen(true);
if (!m_cover_download_window) if (!m_cover_download_window)
{ {