app: move Preferences into the Tools menu (the C++ layout)
CI / Build & test (Windows) (push) Failing after 16m36s
CI / Build & test (Linux) (push) Successful in 19m14s

This commit is contained in:
2026-08-25 00:46:10 +08:00
parent 476114cec0
commit dfbb0eaec5
+4 -2
View File
@@ -2480,6 +2480,9 @@ fn make_menus(state: MenuState) -> Vec<MenuBarEntry> {
tools.push(menu_item(A::Snapping).with_checked(state.snapping).separated());
tools.push(menu_item(A::UseProxyMedia).with_checked(state.use_proxy_media));
tools.push(menu_item(A::ProxySettings));
// 首选项 belongs to the Tools menu (the C++ layout); on macOS it ALSO
// stays here (the Qt menu-role relocation does not exist in gpui).
tools.push(menu_item(A::Preferences));
vec![
MenuBarEntry::new(
@@ -2562,8 +2565,7 @@ fn make_menus(state: MenuState) -> Vec<MenuBarEntry> {
menu_item(A::DecreaseTrackHeight).separated(),
menu_item(A::ToggleShowAll).with_checked(state.show_all),
menu_item(A::FullScreen).with_checked(state.full_screen),
menu_item(A::FullScreenViewer).separated(),
menu_item(A::Preferences),
menu_item(A::FullScreenViewer),
]),
),
MenuBarEntry::new(