update checkbox icons, clear redo actions when cleaning memory
This commit is contained in:
BIN
data/ui/check-v.png
Normal file
BIN
data/ui/check-v.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.4 KiB |
Binary file not shown.
@@ -52,6 +52,8 @@ void ActionManager::clear()
|
|||||||
{
|
{
|
||||||
while (!I.m_actions.empty())
|
while (!I.m_actions.empty())
|
||||||
I.m_actions.pop();
|
I.m_actions.pop();
|
||||||
|
while (!I.m_redos.empty())
|
||||||
|
I.m_redos.pop();
|
||||||
I.m_memory = 0;
|
I.m_memory = 0;
|
||||||
//LOG("History: %.2f KB", I.m_memory / 1024.f);
|
//LOG("History: %.2f KB", I.m_memory / 1024.f);
|
||||||
App::I.update_memory_usage(I.m_memory);
|
App::I.update_memory_usage(I.m_memory);
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ public:
|
|||||||
NodeBorder* m_outer;
|
NodeBorder* m_outer;
|
||||||
NodeBorder* m_inner;
|
NodeBorder* m_inner;
|
||||||
NodeImage* m_icon;
|
NodeImage* m_icon;
|
||||||
std::string m_icon_path;
|
std::string m_icon_path = "data/ui/check-v.png";
|
||||||
bool checked = false;
|
bool checked = false;
|
||||||
virtual Node* clone_instantiate() const override;
|
virtual Node* clone_instantiate() const override;
|
||||||
virtual void clone_children(Node* dest) const override;
|
virtual void clone_children(Node* dest) const override;
|
||||||
|
|||||||
Reference in New Issue
Block a user