Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Fix GPUI get_menus documentation (#12571)

Matin Aniss66b73c2d602f
diff --git a/crates/gpui/src/app.rs b/crates/gpui/src/app.rs
index 0db83599e4b..ac33bd83630 100644
--- a/crates/gpui/src/app.rs
+++ b/crates/gpui/src/app.rs
@@ -1168,7 +1168,7 @@ impl AppContext {
self.platform.set_menus(menus, &self.keymap.borrow());
}
- /// Sets the menu bar for this application. This will replace any existing menu bar.
+ /// Gets the menu bar for this application.
pub fn get_menus(&self) -> Option<Vec<OwnedMenu>> {
self.platform.get_menus()
}