mirror of
https://github.com/aseprite/aseprite.git
synced 2024-10-03 21:46:20 +00:00
Don't allow Insert Text when the layer is locked
Discussion: https://community.aseprite.org/t/750
This commit is contained in:
parent
e0a60b6748
commit
7682971acb
@ -51,7 +51,8 @@ PasteTextCommand::PasteTextCommand()
|
||||
|
||||
bool PasteTextCommand::onEnabled(Context* ctx)
|
||||
{
|
||||
return ctx->checkFlags(ContextFlags::ActiveDocumentIsWritable);
|
||||
return ctx->checkFlags(ContextFlags::ActiveDocumentIsWritable |
|
||||
ContextFlags::ActiveLayerIsEditable);
|
||||
}
|
||||
|
||||
class PasteTextWindow : public app::gen::PasteText {
|
||||
|
Loading…
Reference in New Issue
Block a user