Workaround crash when clearing recents

This commit is contained in:
Henrik Rydgård 2024-10-25 21:15:25 +02:00
parent 8991329de4
commit f29dbbee29

View File

@ -1765,5 +1765,6 @@ UI::EventReturn GridSettingsPopupScreen::GridMinusClick(UI::EventParams &e) {
UI::EventReturn GridSettingsPopupScreen::OnRecentClearClick(UI::EventParams &e) { UI::EventReturn GridSettingsPopupScreen::OnRecentClearClick(UI::EventParams &e) {
g_Config.ClearRecentIsos(); g_Config.ClearRecentIsos();
OnRecentChanged.Trigger(e); OnRecentChanged.Trigger(e);
TriggerFinish(DR_OK);
return UI::EVENT_DONE; return UI::EVENT_DONE;
} }