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

@ -74,6 +74,8 @@ impl super::ForegroundPlatform for ForegroundPlatform {
fn on_menu_command(&self, _: Box<dyn FnMut(&dyn Action)>) {}
fn on_validate_menu_command(&self, _: Box<dyn FnMut(&dyn Action) -> bool>) {}
fn set_menus(&self, _: Vec<crate::Menu>, _: &keymap::Matcher) {}
fn prompt_for_paths(