fix: nav model active entity
This commit is contained in:
parent
a085499c0e
commit
19bd8f39f4
1 changed files with 1 additions and 0 deletions
|
|
@ -963,6 +963,7 @@ impl Application for App {
|
|||
}
|
||||
|
||||
fn on_nav_select(&mut self, entity: Entity) -> Command<Self::Message> {
|
||||
self.nav_model.activate(entity);
|
||||
if let Some(location) = self.nav_model.data::<Location>(entity) {
|
||||
let message = Message::TabMessage(None, tab::Message::Location(location.clone()));
|
||||
return self.update(message);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue