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

Track changed state in nav mode combo box #1703

Merged
merged 2 commits into from
Mar 27, 2023
Merged

Conversation

jleibs
Copy link
Member

@jleibs jleibs commented Mar 23, 2023

It doesn't seem like the .changed() response of the combo box does what we expected. Maybe I'm missing something?

I confirmed this works.

Resolves: #1702

Checklist

@jleibs jleibs added 🪳 bug Something isn't working ui concerns graphical user interface labels Mar 23, 2023
@jleibs jleibs marked this pull request as ready for review March 23, 2023 22:07
Copy link
Member

@teh-cmc teh-cmc left a comment

Choose a reason for hiding this comment

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

The PR itself looks fine but yeah that's weird... summoning @emilk 👀

@@ -315,24 +315,29 @@ impl ViewSpatialState {
.on_hover_text("The virtual camera which controls what is shown on screen.");
ui.vertical(|ui| {
let mut nav_mode = *self.nav_mode.get();
let nav_mode_response = egui::ComboBox::from_id_source("nav_mode")
let changed = egui::ComboBox::from_id_source("nav_mode")
Copy link
Member

Choose a reason for hiding this comment

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

A comment with a link to an egui issue would be nice if we go that route

Copy link
Member

Choose a reason for hiding this comment

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

The ComboBox just opens a ui - it can't/shouldn't know if anything in that ui changes

@emilk emilk merged commit 1cd2bb5 into main Mar 27, 2023
@emilk emilk deleted the jleibs/nav_mode_changed branch March 27, 2023 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪳 bug Something isn't working ui concerns graphical user interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2D vs 3D view can no longer be selected manually
3 participants