deactivate timeline
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
|
||||
class LayoutManager
|
||||
{
|
||||
std::map<uint16_t, std::unique_ptr<class Node>> m_layouts;
|
||||
std::map<uint16_t, std::shared_ptr<class Node>> m_layouts;
|
||||
std::string m_path;
|
||||
struct stat m_file_info { 0 };
|
||||
public:
|
||||
@@ -34,6 +34,11 @@ public:
|
||||
auto i = m_layouts.find(id);
|
||||
return i == m_layouts.end() ? nullptr : i->second.get();
|
||||
}
|
||||
class std::shared_ptr<Node> get_ref(const char* name)
|
||||
{
|
||||
auto i = m_layouts.find(const_hash(name));
|
||||
return i == m_layouts.end() ? nullptr : i->second;
|
||||
}
|
||||
void restore_context();
|
||||
void clear_context();
|
||||
//Node& operator[](const char* ids) { return m_layouts[const_hash(ids)]; }
|
||||
|
||||
Reference in New Issue
Block a user