overlays: Show feedback while stopping ppu compilation

This commit is contained in:
Megamouse 2021-09-05 13:12:08 +02:00
parent e5876b3a1b
commit da4f4dafbd
4 changed files with 37 additions and 7 deletions

View file

@ -7,6 +7,7 @@
#include "Utilities/File.h"
#include "Emu/System.h"
#include "Emu/system_config.h"
#include "Emu/system_progress.hpp"
#include "Emu/IdManager.h"
#include "Emu/Cell/Modules/cellScreenshot.h"
#include "Emu/RSX/rsx_utils.h"
@ -348,7 +349,12 @@ void gs_frame::close()
{
Emu.CallAfter([this]()
{
QWindow::hide(); // Workaround
if (!(+g_progr))
{
// Hide the dialog before stopping if no progress bar is being shown.
// Otherwise users might think that the game softlocked if stopping takes too long.
QWindow::hide();
}
if (!Emu.IsStopped())
{