Skip to content

Commit 2c92dbe

Browse files
committed
RMG: improve ROM browser refresh logic in on_Emulation_Finished()
1 parent 251755a commit 2c92dbe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Source/RMG/UserInterface/MainWindow.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -1774,7 +1774,9 @@ void MainWindow::on_Emulation_Finished(bool ret)
17741774
this->ui_NoSwitchToRomBrowser = false;
17751775
}
17761776

1777-
if (this->ui_RefreshRomListAfterEmulation)
1777+
if (!this->ui_QuitAfterEmulation &&
1778+
!this->ui_NoSwitchToRomBrowser &&
1779+
this->ui_RefreshRomListAfterEmulation)
17781780
{
17791781
this->ui_Widget_RomBrowser->RefreshRomList();
17801782
this->ui_RefreshRomListAfterEmulation = false;

0 commit comments

Comments
 (0)