log history memory usage add fix virtual dtor for Action subclasses to be deleted from memory
This commit is contained in:
@@ -623,7 +623,8 @@ void App::initLayout()
|
||||
if (auto* button = layout[main_id]->find<NodeButton>("btn-undo"))
|
||||
{
|
||||
button->on_click = [this,button](Node*) {
|
||||
ActionManager::undo();
|
||||
if (!ActionManager::empty())
|
||||
ActionManager::undo();
|
||||
};
|
||||
}
|
||||
if (auto* button = layout[main_id]->find<NodeButton>("btn-clear"))
|
||||
|
||||
Reference in New Issue
Block a user