Enable "Remove Layer" command if the layer is locked or hidden anyway

This commit is contained in:
David Capello 2017-01-31 10:20:45 -03:00
parent f381cb972c
commit 11187a8d4f

View File

@ -1,5 +1,5 @@
// Aseprite // Aseprite
// Copyright (C) 2001-2016 David Capello // Copyright (C) 2001-2017 David Capello
// //
// This program is distributed under the terms of // This program is distributed under the terms of
// the End-User License Agreement for Aseprite. // the End-User License Agreement for Aseprite.
@ -43,9 +43,7 @@ bool RemoveLayerCommand::onEnabled(Context* context)
{ {
return context->checkFlags(ContextFlags::ActiveDocumentIsWritable | return context->checkFlags(ContextFlags::ActiveDocumentIsWritable |
ContextFlags::HasActiveSprite | ContextFlags::HasActiveSprite |
ContextFlags::HasActiveLayer | ContextFlags::HasActiveLayer);
ContextFlags::ActiveLayerIsVisible |
ContextFlags::ActiveLayerIsEditable);
} }
void RemoveLayerCommand::onExecute(Context* context) void RemoveLayerCommand::onExecute(Context* context)