Fix context menu remaining open
This commit is contained in:
parent
2a4d9f0d28
commit
af8a23eb62
1 changed files with 4 additions and 0 deletions
|
|
@ -114,6 +114,8 @@ pub enum Action {
|
||||||
Copy,
|
Copy,
|
||||||
Paste,
|
Paste,
|
||||||
SelectAll,
|
SelectAll,
|
||||||
|
Settings,
|
||||||
|
TabNew,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Action {
|
impl Action {
|
||||||
|
|
@ -122,6 +124,8 @@ impl Action {
|
||||||
Action::Copy => Message::Copy(Some(entity)),
|
Action::Copy => Message::Copy(Some(entity)),
|
||||||
Action::Paste => Message::Paste(Some(entity)),
|
Action::Paste => Message::Paste(Some(entity)),
|
||||||
Action::SelectAll => Message::SelectAll(Some(entity)),
|
Action::SelectAll => Message::SelectAll(Some(entity)),
|
||||||
|
Action::Settings => Message::ToggleContextPage(ContextPage::Settings),
|
||||||
|
Action::TabNew => Message::TabNew,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue