Skip to content

fix multi-image rating toast when clearing on 1-star and un-rejected#21432

Merged
TurboGit merged 1 commit into
darktable-org:masterfrom
rtmongold:fix_multi_image_toast
Jul 22, 2026
Merged

fix multi-image rating toast when clearing on 1-star and un-rejected#21432
TurboGit merged 1 commit into
darktable-org:masterfrom
rtmongold:fix_multi_image_toast

Conversation

@rtmongold

@rtmongold rtmongold commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

Closes #21416
5.6.1: #21571

When rating multiple images, the toast used the key pressed or internal
upgrade/downgrade codes instead of the rating actually applied — e.g.
clearing 1-star still said "applying rating 1", and un-reject still said
"rejecting".

Fixed via shared _ratings_effective() for apply and toast logging.

When the selection gets one effective rating, show that value; when
upgrade/downgrade results differ, show a generic "applying ratings to N
images" message; un-reject uses "unrejecting …".

New translatable strings (5.8). Rating behavior unchanged.

@TurboGit TurboGit added this to the 5.6.1 milestone Jun 28, 2026
@TurboGit TurboGit added bugfix pull request fixing a bug priority: low core features work as expected, only secondary/optional features don't scope: UI user interface and interactions release notes: pending labels Jun 28, 2026
@TurboGit TurboGit modified the milestones: 5.6.1, 5.8 Jun 28, 2026
@TurboGit

Copy link
Copy Markdown
Member

Can't be for 5.6.1 as it introduces a new string. Or you may split in two PR, one without the "unrejecting" new string for 5.6.1 and the other for 5.8?

@rtmongold

Copy link
Copy Markdown
Contributor Author

@TurboGit I will split this into two PRs it was my initial plan anyways.

@rtmongold
rtmongold force-pushed the fix_multi_image_toast branch from 3e8258b to bb44dcd Compare June 28, 2026 06:34
@rtmongold

Copy link
Copy Markdown
Contributor Author

@TurboGit ok got it split out, and will submit the other PR after this one goes through. Thanks.

When rating two or more images at once, the status message used the key
pressed instead of the rating actually applied to the images.
This was visible when toggling 1-star off (double-press 1): images were
cleared to 0 stars but the toast still said "applying rating 1 to N
images".
Changed _ratings_apply() to use a shared _ratings_effective() helper
for both the apply loop and a new _ratings_log_multi() toast helper.
When all selected images receive the same effective rating, show that
value.
Rating behavior is unchanged; only on-screen wording is corrected.
@rtmongold
rtmongold force-pushed the fix_multi_image_toast branch from bb44dcd to 0d87bdf Compare July 19, 2026 03:27
@rtmongold

Copy link
Copy Markdown
Contributor Author

@TurboGit Sorry for the delay work got busy.
I created a new PR #21571 on 5.6.x with everything that doesn't require new translations.
This PR I left on master for the new changes that would require translations for 5.8.

@rtmongold rtmongold changed the title fix multi-image rating toast when clearing on 1-star fix multi-image rating toast when clearing on 1-star and un-rejected Jul 19, 2026

@TurboGit TurboGit left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@TurboGit
TurboGit merged commit a289f3b into darktable-org:master Jul 22, 2026
5 checks passed
@rtmongold
rtmongold deleted the fix_multi_image_toast branch July 22, 2026 17:12
@lefth

lefth commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Thank you!

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 priority: low core features work as expected, only secondary/optional features don't scope: UI user interface and interactions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When double-rating a group (to remove the rating), the on-screen rating number does not match the action

3 participants