Make more menu-related platform methods no-ops
This commit is contained in:
parent
886ec79d58
commit
5e558e2a58
1 changed files with 3 additions and 9 deletions
|
@ -214,17 +214,11 @@ impl Platform for TestPlatform {
|
||||||
|
|
||||||
fn set_menus(&self, _menus: Vec<crate::Menu>, _keymap: &Keymap) {}
|
fn set_menus(&self, _menus: Vec<crate::Menu>, _keymap: &Keymap) {}
|
||||||
|
|
||||||
fn on_app_menu_action(&self, _callback: Box<dyn FnMut(&dyn crate::Action)>) {
|
fn on_app_menu_action(&self, _callback: Box<dyn FnMut(&dyn crate::Action)>) {}
|
||||||
unimplemented!()
|
|
||||||
}
|
|
||||||
|
|
||||||
fn on_will_open_app_menu(&self, _callback: Box<dyn FnMut()>) {
|
fn on_will_open_app_menu(&self, _callback: Box<dyn FnMut()>) {}
|
||||||
unimplemented!()
|
|
||||||
}
|
|
||||||
|
|
||||||
fn on_validate_app_menu_command(&self, _callback: Box<dyn FnMut(&dyn crate::Action) -> bool>) {
|
fn on_validate_app_menu_command(&self, _callback: Box<dyn FnMut(&dyn crate::Action) -> bool>) {}
|
||||||
unimplemented!()
|
|
||||||
}
|
|
||||||
|
|
||||||
fn os_name(&self) -> &'static str {
|
fn os_name(&self) -> &'static str {
|
||||||
"test"
|
"test"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue