diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-03-20 23:22:51 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-03-20 23:22:51 +0000 |
commit | 1efe681967cc764db3185134e0750349061a6e41 (patch) | |
tree | 7ef9b34d0197a6a97e0de4caec3db3099a76d7b6 /ui/editNetwork.cpp | |
parent | Remove unrequired UIShader (diff) | |
download | ilt-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.cpp | 4 |
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()))) { |