mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-31 15:53:17 +00:00
imgui: fix End call when window is collapsed (#850)
This commit is contained in:
parent
e3c2a91477
commit
a0cf4ce7de
2 changed files with 6 additions and 5 deletions
|
@ -253,8 +253,7 @@ void MsgDialogUi::Draw() {
|
|||
SetNextWindowCollapsed(false);
|
||||
KeepNavHighlight();
|
||||
// Hack to allow every dialog to have a unique window
|
||||
if (Begin("Message Dialog##MessageDialog", nullptr,
|
||||
ImGuiWindowFlags_NoDecoration | ImGuiWindowFlags_NoSavedSettings)) {
|
||||
if (Begin("Message Dialog##MessageDialog", nullptr, ImGuiWindowFlags_NoSavedSettings)) {
|
||||
switch (state->GetMode()) {
|
||||
case MsgDialogMode::USER_MSG:
|
||||
DrawUser();
|
||||
|
@ -266,8 +265,8 @@ void MsgDialogUi::Draw() {
|
|||
DrawSystemMessage();
|
||||
break;
|
||||
}
|
||||
End();
|
||||
}
|
||||
End();
|
||||
|
||||
first_render = false;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue