Cleanup: Use simpler syntax to return panel open status

This commit is contained in:
Hans Goudey
2023-02-21 21:45:14 -05:00
parent 8b63966236
commit 05637254da

View File

@@ -731,13 +731,7 @@ Panel *UI_panel_begin(
UI_block_theme_style_set(block, UI_BLOCK_THEME_STYLE_POPUP);
}
*r_open = false;
if (UI_panel_is_closed(panel)) {
return panel;
}
*r_open = true;
*r_open = !UI_panel_is_closed(panel);
return panel;
}