mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-29 19:20:09 +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)
|
||||
{
|
||||
return context->checkFlags(ContextFlags::ActiveDocumentIsWritable |
|
||||
ContextFlags::HasActiveSprite |
|
||||
ContextFlags::HasActiveLayer |
|
||||
ContextFlags::ActiveLayerIsReadable |
|
||||
ContextFlags::ActiveLayerIsWritable |
|
||||
ContextFlags::ActiveLayerIsImage);
|
||||
ContextFlags::HasActiveSprite);
|
||||
}
|
||||
|
||||
void NewFrameCommand::onExecute(Context* context)
|
||||
|
Loading…
x
Reference in New Issue
Block a user