mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-10 03:44:16 +00:00
Fix NewFrame command so it's enabled even when we don't have layers
This commit is contained in:
parent
05d0eaee6d
commit
5601b07df6
@ -60,11 +60,7 @@ NewFrameCommand::NewFrameCommand()
|
|||||||
bool NewFrameCommand::onEnabled(Context* context)
|
bool NewFrameCommand::onEnabled(Context* context)
|
||||||
{
|
{
|
||||||
return context->checkFlags(ContextFlags::ActiveDocumentIsWritable |
|
return context->checkFlags(ContextFlags::ActiveDocumentIsWritable |
|
||||||
ContextFlags::HasActiveSprite |
|
ContextFlags::HasActiveSprite);
|
||||||
ContextFlags::HasActiveLayer |
|
|
||||||
ContextFlags::ActiveLayerIsReadable |
|
|
||||||
ContextFlags::ActiveLayerIsWritable |
|
|
||||||
ContextFlags::ActiveLayerIsImage);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void NewFrameCommand::onExecute(Context* context)
|
void NewFrameCommand::onExecute(Context* context)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user