From 26d99ad856563dc2234957fcd30866b8d76a49a5 Mon Sep 17 00:00:00 2001 From: scawful Date: Sat, 20 Jul 2024 10:46:09 -0400 Subject: [PATCH] add close icon to label editor popup --- src/app/core/labeling.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/core/labeling.cc b/src/app/core/labeling.cc index 492dcfb7..34ede935 100644 --- a/src/app/core/labeling.cc +++ b/src/app/core/labeling.cc @@ -12,6 +12,7 @@ #include "app/core/common.h" #include "app/core/constants.h" +#include "app/gui/icons.h" namespace yaze { namespace app { @@ -116,6 +117,9 @@ void ResourceLabelManager::SelectableLabelWithNameEdit( ImGuiInputTextFlags_EnterReturnsTrue)) { labels_[type][key] = *new_label; } + if (ImGui::Button(ICON_MD_CLOSE)) { + ImGui::CloseCurrentPopup(); + } ImGui::EndPopup(); } }