Mobile: hide the desktop menu bar

Gate the top menu bar on !mobile_active(). Its commands are all reachable from the
mobile shell (⌕ command palette, ⋯ overflow, and the stage/timeline context menus),
so the desktop menu bar is redundant on mobile and just wastes a strip of vertical
space. Desktop unchanged.
This commit is contained in:
Skyler Lehmkuhl 2026-07-03 01:08:05 -04:00
parent 6f67ddb709
commit 9646eef487
1 changed files with 4 additions and 1 deletions

View File

@ -6577,7 +6577,9 @@ impl eframe::App for EditorApp {
}
}
// Top menu bar (egui-rendered on all platforms)
// Top menu bar (egui-rendered on desktop). On mobile the shell's ⌕ palette + ⋯ overflow
// expose every command, so the desktop menu bar is suppressed.
if !self.mobile_active() {
egui::TopBottomPanel::top("menu_bar").show(ctx, |ui| {
if let Some(menu_system) = &self.menu_system {
let recent_files = self.config.get_recent_files();
@ -6613,6 +6615,7 @@ impl eframe::App for EditorApp {
}
}
});
}
// Render start screen or editor based on app mode
if self.app_mode == AppMode::StartScreen {