Qt: Fix crash when FSUI open and game list activated

This commit is contained in:
Stenzek 2025-03-28 17:25:53 +10:00
parent fbadacae78
commit 58bd87666e
No known key found for this signature in database

View File

@ -471,6 +471,10 @@ void MainWindow::destroyDisplayWidget(bool show_game_list)
void MainWindow::updateDisplayWidgetCursor()
{
// may be temporarily surfaceless
if (!m_display_widget)
return;
m_display_widget->updateRelativeMode(s_system_valid && !s_system_paused && m_relative_mouse_mode);
m_display_widget->updateCursor(s_system_valid && !s_system_paused && shouldHideMouseCursor());
}
@ -514,6 +518,7 @@ void MainWindow::onSystemStarting()
s_system_valid = false;
s_system_paused = false;
switchToEmulationView();
updateEmulationActions(true, false, Achievements::IsHardcoreModeActive());
}