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