update checkbox icons, clear redo actions when cleaning memory

This commit is contained in:
2019-07-11 11:13:43 +02:00
parent 80b9a4d281
commit d453e854b1
4 changed files with 3 additions and 1 deletions

BIN
data/ui/check-v.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

View File

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

View File

@@ -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;