add close icon to label editor popup

This commit is contained in:
scawful
2024-07-20 10:46:09 -04:00
parent 53604dc240
commit 26d99ad856

View File

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