Skip to content

Update the layer widget's selection when the active document switches#1602

Merged
cameronwhite merged 1 commit into
masterfrom
fix/layer-selection
Jul 8, 2025
Merged

Update the layer widget's selection when the active document switches#1602
cameronwhite merged 1 commit into
masterfrom
fix/layer-selection

Conversation

@cameronwhite

Copy link
Copy Markdown
Member

Previously the selected list item wasn't updated after loading a new document into the panel, so the top-most layer was shown as selected by default. This could cause very confusing behaviour, as in bug #1573, if a different layer was actually the current layer internally

Bug: #1573

Previously the selected list item wasn't updated after loading a new document into the panel, so the top-most layer was shown as selected by default. This could cause very confusing behaviour, as in bug #1573, if a different layer was actually the current layer internally

Bug: #1573
@cameronwhite

Copy link
Copy Markdown
Member Author

A related issue from #1573 is that when loading a .ora file, the bottom-most layer actually ends up being the selected layer because we don't do anything specific to configure this.
I think the top-most, or at least the top-most visible layer, would maybe be a more intuitive default?

There is also an extension for storing info about the selected layer in .ora files: https://www.openraster.org/extensions/layer-selection-status.html

@cameronwhite cameronwhite merged commit 94b4bde into master Jul 8, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant