Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix selection history right-click menu not working #3819

Merged
merged 2 commits into from
Oct 12, 2023

Conversation

teh-cmc
Copy link
Member

@teh-cmc teh-cmc commented Oct 11, 2023

23-10-11_20.10.30.patched.mp4

Checklist

  • I have read and agree to Contributor Guide and the Code of Conduct
  • I've included a screenshot or gif (if applicable)
  • I have tested demo.rerun.io (if applicable)
  • The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG

@teh-cmc teh-cmc added 🪳 bug Something isn't working 📺 re_viewer affects re_viewer itself 😤 annoying Something in the UI / SDK is annoying to use include in changelog labels Oct 11, 2023
let response = response.context_menu(|ui| {
// undo: newest on top, oldest on bottom
for i in (0..history.current).rev() {
self.history_item_ui(blueprint, ui, i, history);
}
return_current = true;
Copy link
Member

Choose a reason for hiding this comment

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

this will return the current selection even if the user does not click an item in the list - is this intended?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, selecting the current thing is a no-op.

We could add an extra check just in case I guess 🤷

@teh-cmc teh-cmc merged commit 65dc20c into main Oct 12, 2023
30 of 31 checks passed
@teh-cmc teh-cmc deleted the cmc/fix_selection_history branch October 12, 2023 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
😤 annoying Something in the UI / SDK is annoying to use 🪳 bug Something isn't working include in changelog 📺 re_viewer affects re_viewer itself
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Selecting selection from selection history does not work
2 participants