Skip to content

Commit

Permalink
Fix enabling commands when they need to write a document in certain c…
Browse files Browse the repository at this point in the history
…ases (fix aseprite#4310)

In certain situations a script creating a transaction could run
certain commands (or functions running commands) that will ask if the
command is enabled before executing it (Command::executeCommand()).

ContextFlags::update() is the function that checks if we can upgrade a
reader lock to a writer, which means that we can write the
document. The new fix in laf's RWLock::canWriteLockFromRead() makes
this condition work correctly.
  • Loading branch information
dacap committed Feb 16, 2024
1 parent 243982a commit a1b52fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion laf

0 comments on commit a1b52fd

Please sign in to comment.