Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't emit layerOrderChanged when removing layers
Otherwise it automatically enables the layer order panel
- Loading branch information
1 parent
b8fd1fd
commit 746d288
Showing
2 changed files
with
1 addition
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
746d288
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't the problem rather that the panel relies on the layer order change signal to be activated?
746d288
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was 50/50 on emitting that signal when a layer was removed in the first place. I'm not sure that removing a layer really consistutes reordering or not. But when I discovered it caused this bug it pushed me to just remove the signal.
If we did emit it for layer removal I can't see a clean way to detect that the signal was caused by layer removal and not by manual reordering. On the flipside if someone wants both conditions (manual layer reordering AND reordering via removal) they could just connect to both signals. Maybe I just need to make this clear in the docs.
746d288
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm rewriting this code anyway right now.
hasCustomLayerOrder
is still only in gui.