Skip to content

Commit

Permalink
fix #7
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthiasGrandl committed Feb 16, 2024
1 parent 6558a4c commit cdcde2b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ impl List {
.unwrap()
.has_focus(cx)
{
this.update(triggered, cx);
this.update(false, cx);
last = std::time::Instant::now();
}
});
Expand Down Expand Up @@ -535,6 +535,8 @@ impl List {
pub fn selection_change(&self, actions: &ActionsModel, cx: &mut WindowContext) {
if let Some(item) = self.selected(cx) {
actions.update_local(item.actions.clone(), cx)
} else {
actions.update_local(vec![], cx)
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ impl Render for Actions {
.child(open)
.child(self.popup(cx))
} else {
div()
div().child(" ")
}
}
}
Expand Down

0 comments on commit cdcde2b

Please sign in to comment.