NewLayer can be called in batch mode

This commit is contained in:
David Capello 2018-09-04 17:30:34 -03:00
parent 8ba664e306
commit 853415332b

View File

@ -319,6 +319,8 @@ void NewLayerCommand::onExecute(Context* context)
tx.commit();
}
if (context->isUIAvailable()) {
update_screen_for_document(document);
StatusBar::instance()->invalidate();
@ -329,6 +331,7 @@ void NewLayerCommand::onExecute(Context* context)
App::instance()->mainWindow()->popTimeline();
}
}
std::string NewLayerCommand::onGetFriendlyName() const
{