From 1efe681967cc764db3185134e0750349061a6e41 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 20 Mar 2025 23:22:51 +0000 Subject: Support capturing and reacting to ImGui window closure --- ui/editNetwork.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ui/editNetwork.cpp') 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](const char * name) { if (ImGui::RadioButton(name, dynamic_cast(builder.get()))) { -- cgit v1.2.3