mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-06 06:58:15 +00:00
Enable "Remove Layer" command if the layer is locked or hidden anyway
This commit is contained in:
parent
f381cb972c
commit
11187a8d4f
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user