Fill layer action fills incorrect layer

Your issue should be same as this:

Try QTimer.singleShot or watch the undo / undo docker history if you want guarantees

1 Like