You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Disclaimer: I'm not entirely sure if this is a bug or actually the desired behaviour.
I was looking for a way to disable the entire ui, including all tabs and their contents. So I tried setting the ui to disabled before passing it to the DockArea:
CentralPanel::default()
.show(ctx, |ui| {
// Set disabled
ui.set_enabled(false);
// Show dock area
DockArea::new(&mut self.tree)
.show_inside(ui, &mut self.context);
});
This causes all tabs inside the dock area to be disabled, as expected. But any content of the tabs, like buttons, sliders, etc. still stays interactive. In egui itself the enabled/disabled state seems to propagate down to any sub-ui, so it might be consistent for egui_dock to also behave like this.
The text was updated successfully, but these errors were encountered:
Disclaimer: I'm not entirely sure if this is a bug or actually the desired behaviour.
I was looking for a way to disable the entire ui, including all tabs and their contents. So I tried setting the ui to disabled before passing it to the
DockArea
:This causes all tabs inside the dock area to be disabled, as expected. But any content of the tabs, like buttons, sliders, etc. still stays interactive. In
egui
itself the enabled/disabled state seems to propagate down to any sub-ui, so it might be consistent foregui_dock
to also behave like this.The text was updated successfully, but these errors were encountered: