Enable and disable application menu items based on the active view

This commit is contained in:
Max Brunsfeld 2022-05-19 16:24:02 -07:00
parent c4554c1720
commit ea85473f4f
4 changed files with 56 additions and 0 deletions

View file

@ -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,