add close icon to label editor popup
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user