nesting shit
This commit is contained in:
@@ -10,8 +10,12 @@ bool SettingsWindow::render() {
|
||||
ImVec2 center = ImGui::GetMainViewport()->GetCenter();
|
||||
ImGui::SetNextWindowPos(center, ImGuiCond_Appearing, ImVec2(0.5f, 0.5f));
|
||||
|
||||
if(ImGui::BeginPopupModal("Settings", &isOpen)) {
|
||||
if(ImGui::BeginTabBar("SettingsTabBar")) {
|
||||
if(!ImGui::BeginPopupModal("Settings", &isOpen))
|
||||
return false;
|
||||
|
||||
if(!ImGui::BeginTabBar("SettingsTabBar"))
|
||||
return false;
|
||||
|
||||
if(ImGui::BeginTabItem("General")) {
|
||||
if(ImGui::Button("Pick...")) {
|
||||
NFD::Guard guard;
|
||||
@@ -51,7 +55,6 @@ bool SettingsWindow::render() {
|
||||
}
|
||||
|
||||
ImGui::EndTabBar();
|
||||
}
|
||||
|
||||
ImGui::BeginDisabled(!applyEnabled);
|
||||
if(ImGui::Button("Apply")) {
|
||||
@@ -67,7 +70,6 @@ bool SettingsWindow::render() {
|
||||
ImGui::CloseCurrentPopup();
|
||||
}
|
||||
ImGui::EndPopup();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
Reference in New Issue
Block a user