Skip to content

Commit

Permalink
RMG: improve ROM browser refresh logic in on_Emulation_Finished()
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosalie241 committed Aug 28, 2023
1 parent 251755a commit 2c92dbe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/RMG/UserInterface/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1774,7 +1774,9 @@ void MainWindow::on_Emulation_Finished(bool ret)
this->ui_NoSwitchToRomBrowser = false;
}

if (this->ui_RefreshRomListAfterEmulation)
if (!this->ui_QuitAfterEmulation &&
!this->ui_NoSwitchToRomBrowser &&
this->ui_RefreshRomListAfterEmulation)
{
this->ui_Widget_RomBrowser->RefreshRomList();
this->ui_RefreshRomListAfterEmulation = false;
Expand Down

0 comments on commit 2c92dbe

Please sign in to comment.