mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-06 03:39:51 +00:00
Check if the context can show the new layer name dialog
This commit is contained in:
parent
af4fd54c2a
commit
1ae29dfc3c
@ -181,7 +181,7 @@ void NewLayerCommand::onExecute(Context* context)
|
||||
|
||||
#ifdef ENABLE_UI
|
||||
// If params specify to ask the user about the name...
|
||||
if (params().ask()) {
|
||||
if (params().ask() && context->isUIAvailable()) {
|
||||
// We open the window to ask the name
|
||||
app::gen::NewLayer window;
|
||||
window.name()->setText(name.c_str());
|
||||
|
Loading…
x
Reference in New Issue
Block a user