Enable and disable application menu items based on the active view
This commit is contained in:
parent
c4554c1720
commit
ea85473f4f
4 changed files with 56 additions and 0 deletions
|
@ -73,6 +73,7 @@ pub(crate) trait ForegroundPlatform {
|
|||
fn run(&self, on_finish_launching: Box<dyn FnOnce() -> ()>);
|
||||
|
||||
fn on_menu_command(&self, callback: Box<dyn FnMut(&dyn Action)>);
|
||||
fn on_validate_menu_command(&self, callback: Box<dyn FnMut(&dyn Action) -> bool>);
|
||||
fn set_menus(&self, menus: Vec<Menu>, matcher: &keymap::Matcher);
|
||||
fn prompt_for_paths(
|
||||
&self,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue