summaryrefslogtreecommitdiff
path: root/ui/editNetwork.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2025-03-20 23:22:51 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2025-03-20 23:22:51 +0000
commit1efe681967cc764db3185134e0750349061a6e41 (patch)
tree7ef9b34d0197a6a97e0de4caec3db3099a76d7b6 /ui/editNetwork.cpp
parentRemove unrequired UIShader (diff)
downloadilt-1efe681967cc764db3185134e0750349061a6e41.tar.bz2
ilt-1efe681967cc764db3185134e0750349061a6e41.tar.xz
ilt-1efe681967cc764db3185134e0750349061a6e41.zip
Support capturing and reacting to ImGui window closure
Diffstat (limited to 'ui/editNetwork.cpp')
-rw-r--r--ui/editNetwork.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/editNetwork.cpp b/ui/editNetwork.cpp
index 3a28af7..a9b041c 100644
--- a/ui/editNetwork.cpp
+++ b/ui/editNetwork.cpp
@@ -65,9 +65,9 @@ EditNetwork::Builder::setHeightsFor(Network * network, const Link::CCollection &
}
void
-EditNetwork::render()
+EditNetwork::render(bool & open)
{
- ImGui::Begin("Edit Network");
+ ImGui::Begin("Edit Network", &open);
auto builderChoice = [this]<typename Impl>(const char * name) {
if (ImGui::RadioButton(name, dynamic_cast<Impl *>(builder.get()))) {