mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-20 05:45:21 +00:00
Add Emu.HasGui() to properly hide Qt dialogs in no-gui mode
This commit is contained in:
parent
84f9911163
commit
46ca39ec4d
10 changed files with 26 additions and 10 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue