Fix warning from popped, minimized menu. (#5212)
* Fix warning from popped, minimized menu. * Pre-empt another possible missing Pop.
This commit is contained in:
@@ -527,6 +527,7 @@ void Menu::DrawElement() {
|
|||||||
if (!popout) {
|
if (!popout) {
|
||||||
ImGui::PopStyleVar();
|
ImGui::PopStyleVar();
|
||||||
}
|
}
|
||||||
|
ImGui::PopStyleColor();
|
||||||
ImGui::End();
|
ImGui::End();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -537,6 +538,7 @@ void Menu::DrawElement() {
|
|||||||
if (!popout) {
|
if (!popout) {
|
||||||
ImGui::PopStyleVar();
|
ImGui::PopStyleVar();
|
||||||
}
|
}
|
||||||
|
ImGui::PopStyleColor();
|
||||||
CVarSetInteger(CVAR_SETTING("Menu.Popout"), popped);
|
CVarSetInteger(CVAR_SETTING("Menu.Popout"), popped);
|
||||||
CVarSetFloat(CVAR_SETTING("Menu.PoppedWidth"), poppedSize.x);
|
CVarSetFloat(CVAR_SETTING("Menu.PoppedWidth"), poppedSize.x);
|
||||||
CVarSetFloat(CVAR_SETTING("Menu.PoppedHeight"), poppedSize.y);
|
CVarSetFloat(CVAR_SETTING("Menu.PoppedHeight"), poppedSize.y);
|
||||||
|
|||||||
Reference in New Issue
Block a user