Add Emu.HasGui() to properly hide Qt dialogs in no-gui mode

This commit is contained in:
Megamouse 2019-12-03 08:32:28 +01:00
parent 84f9911163
commit 46ca39ec4d
10 changed files with 26 additions and 10 deletions

View file

@ -1,4 +1,4 @@
#include "trophy_notification_helper.h"
#include "trophy_notification_helper.h"
#include "trophy_notification_frame.h"
@ -12,6 +12,11 @@ s32 trophy_notification_helper::ShowTrophyNotification(const SceNpTrophyDetails&
return manager->create<rsx::overlays::trophy_notification>()->show(trophy, trophy_icon_buffer);
}
if (!Emu.HasGui())
{
return 0;
}
Emu.CallAfter([=]
{
trophy_notification_frame* trophy_notification = new trophy_notification_frame(trophy_icon_buffer, trophy, m_game_window->frameGeometry().height() / 10);