mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-10 13:48:40 +00:00
imgui: fix End call when window is collapsed (#850)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user