Skip to content

fix: scroll to correct module when navigating from Quick Access Panel#20306

Open
vtyrtov wants to merge 1 commit intodarktable-org:masterfrom
vtyrtov:fix/quick-access-goto-module
Open

fix: scroll to correct module when navigating from Quick Access Panel#20306
vtyrtov wants to merge 1 commit intodarktable-org:masterfrom
vtyrtov:fix/quick-access-goto-module

Conversation

@vtyrtov
Copy link
Contributor

@vtyrtov vtyrtov commented Feb 9, 2026

When clicking 'go to full version' in the Quick Access Panel, the view would sometimes scroll to a wrong module (though the correct tab was always selected). This happened because dtgtk_expander_set_expanded() was a no-op when the target module was already expanded, leaving stale _last_expanded and _start_pos values from a previous expansion. The _expander_resize callback would then either skip scrolling or scroll to the wrong widget.

Add an 'else if(expanded)' branch that updates scroll tracking even when the expander state hasn't changed. Setting _start_pos.height to 0 ensures _expander_resize detects a size change and triggers scrolling.

Fixes: #19692

When clicking 'go to full version' in the Quick Access Panel, the view
would sometimes scroll to a wrong module (though the correct tab was
always selected). This happened because dtgtk_expander_set_expanded()
was a no-op when the target module was already expanded, leaving stale
_last_expanded and _start_pos values from a previous expansion. The
_expander_resize callback would then either skip scrolling or scroll to
the wrong widget.

Add an 'else if(expanded)' branch that updates scroll tracking even when
the expander state hasn't changed. Setting _start_pos.height to 0
ensures _expander_resize detects a size change and triggers scrolling.

Fixes: darktable-org#19692
@TurboGit
Copy link
Member

TurboGit commented Feb 9, 2026

Do you have a reproducer? Seems like it needs some special procedure as not reproducing in all cases.

As we are at it, while testing I found another issue worth fixing at the same time.

  • In Darkroom's preferences allow to expand multiple modules
  • In Darkroom tone group expands multiple modules including exposure.
  • Go to quick access panel, find exposure and click on go to full version button.

See that it moves to tone tab but all modules (except exposure) are collapsed. Seems like this violate the preference. Can you have a look at this? TIA.

@TurboGit TurboGit added this to the 5.6 milestone Feb 9, 2026
@TurboGit TurboGit added bugfix pull request fixing a bug scope: UI user interface and interactions labels Feb 9, 2026
@vtyrtov
Copy link
Contributor Author

vtyrtov commented Feb 10, 2026

Yes, reproduces here.
My workflow: Quick Access → presets → then full modules as needed.
This annoyed me since late last year; finally fixing it.
Found it while preparing the PR.

Will check the second issue too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix pull request fixing a bug scope: UI user interface and interactions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unreliable "go to full version..." buttons

2 participants