mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-07-30 19:40:31 -07:00
Fix warning from popped, minimized menu. (#5212)
* Fix warning from popped, minimized menu. * Pre-empt another possible missing Pop.
This commit is contained in:
parent
6abacc1024
commit
2fd3825569
1 changed files with 2 additions and 0 deletions
|
@ -527,6 +527,7 @@ void Menu::DrawElement() {
|
|||
if (!popout) {
|
||||
ImGui::PopStyleVar();
|
||||
}
|
||||
ImGui::PopStyleColor();
|
||||
ImGui::End();
|
||||
return;
|
||||
}
|
||||
|
@ -537,6 +538,7 @@ void Menu::DrawElement() {
|
|||
if (!popout) {
|
||||
ImGui::PopStyleVar();
|
||||
}
|
||||
ImGui::PopStyleColor();
|
||||
CVarSetInteger(CVAR_SETTING("Menu.Popout"), popped);
|
||||
CVarSetFloat(CVAR_SETTING("Menu.PoppedWidth"), poppedSize.x);
|
||||
CVarSetFloat(CVAR_SETTING("Menu.PoppedHeight"), poppedSize.y);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue