darktable-org / darktable-org/darktable

Clicking on directory name vs. expander in collection panel should have different effects

Open
#19,452 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

no-issue-activity
Dominant language
C
Stars
13.1k
Forks
1.4k
Avg merge
22h 14m
Merged PRs (30d)
198

Description

Is there an existing issue for this?
  • I checked and did not find my issue in the already reported ones
Describe the bug

The action of double clicking on a directory name in the "folder" view of the "collections" panel has two side effects:

  1. It populates the lighttable with all the images in the folder (desired)
  2. If the folder contains one or more subfolders, it will also collapse/expand the folder (unexpected)

Point (2.) is unexpected because subdirectories already have a "|>" indicator on their left that can be clicked to expand/collapse.

The opposite is also true. If one clicks on the expander to list the subfolders does not necessarily want all the images in the parent folder (which may be huge) to be displayed in the lightroom.

Steps to reproduce
  1. Go to "collections" view
  2. Select "folder" from the list of filters
  3. Double click on a folder which contains at least one subfolder to view all the images in it
Expected behavior

The images in the selected folder should be loaded in the lighttable and the double clicked folder should not change its collapsed/expanded state

Logfile | Screenshot | Screencast

No response

Commit

No response

Where did you obtain darktable from?

darktable.org / GitHub release

darktable version

5.2.1

What OS are you using?

Mac

What is the version of your OS?

MacOS Tahoe 26.0.1

Describe your system

No response

Are you using OpenCL GPU in darktable?

Yes

If yes, what is the GPU card and driver?

M4 pro

Please provide additional context if applicable. You can attach files too, but might need to rename to .txt or .zip

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the behavior in darktable's Collections panel with the Folder filter and a folder containing subfolders. Trace the handlers for double-clicking a directory name and clicking the expander; done means each action has only its intended effect, with the folder's images loaded independently from its expanded or collapsed state.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.