fix ui elements overriding

This commit is contained in:
MihailRis 2025-12-01 22:24:01 +03:00
parent 69cf4c1c04
commit c214d70f1d
4 changed files with 8 additions and 5 deletions

View file

@ -289,7 +289,7 @@ namespace gui {
/// @brief collect all nodes having id
static void getIndices(
const std::shared_ptr<UINode>& node,
std::unordered_map<std::string, std::shared_ptr<UINode>>& map
std::unordered_map<std::string, std::weak_ptr<UINode>>& map
);
static std::shared_ptr<UINode> find(