Move set_menus method to MutableAppContext
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
co-authored by
Nathan Sobo
parent
41358f34e3
commit
86c0f41c9e
+4
-4
@@ -191,10 +191,6 @@ impl App {
|
||||
self
|
||||
}
|
||||
|
||||
pub fn set_menus(&self, menus: Vec<Menu>) {
|
||||
self.0.borrow().platform.set_menus(menus);
|
||||
}
|
||||
|
||||
pub fn run<F>(self, on_finish_launching: F)
|
||||
where
|
||||
F: 'static + FnOnce(&mut MutableAppContext),
|
||||
@@ -567,6 +563,10 @@ impl MutableAppContext {
|
||||
result
|
||||
}
|
||||
|
||||
pub fn set_menus(&self, menus: Vec<Menu>) {
|
||||
self.platform.set_menus(menus);
|
||||
}
|
||||
|
||||
pub fn dispatch_action<T: 'static + Any>(
|
||||
&mut self,
|
||||
window_id: usize,
|
||||
|
||||
Reference in New Issue
Block a user