Fix context menu remaining open

This commit is contained in:
Jeremy Soller 2023-12-22 15:16:40 -07:00
parent 2a4d9f0d28
commit af8a23eb62
No known key found for this signature in database
GPG key ID: DCFCA852D3906975

View file

@ -114,6 +114,8 @@ pub enum Action {
Copy,
Paste,
SelectAll,
Settings,
TabNew,
}
impl Action {
@ -122,6 +124,8 @@ impl Action {
Action::Copy => Message::Copy(Some(entity)),
Action::Paste => Message::Paste(Some(entity)),
Action::SelectAll => Message::SelectAll(Some(entity)),
Action::Settings => Message::ToggleContextPage(ContextPage::Settings),
Action::TabNew => Message::TabNew,
}
}
}