nesting shit

This commit is contained in:
irisz64
2025-07-22 11:34:08 +02:00
parent 8549d5a21c
commit 0d48f2c991

View File

@@ -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;
} }