Skip to content

fix multi-image rating toast when clearing on 1-star#21571

Open
rtmongold wants to merge 1 commit into
darktable-org:darktable-5.6.xfrom
rtmongold:fix_multi_image_toast_5.6
Open

fix multi-image rating toast when clearing on 1-star#21571
rtmongold wants to merge 1 commit into
darktable-org:darktable-5.6.xfrom
rtmongold:fix_multi_image_toast_5.6

Conversation

@rtmongold

Copy link
Copy Markdown
Contributor

Closes #21416
Moved from #21432

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".

Fixed by sharing _ratings_effective() between apply and toast logging.

No new strings; rating behavior unchanged.

Added Release Notes.

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.
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