feat: finishing of M0

This commit is contained in:
2026-04-04 08:10:05 +02:00
parent 897577a369
commit fd744573dd
84 changed files with 143204 additions and 85 deletions

View File

@@ -1,4 +1,4 @@
mod app;
mod platform;
pub mod app;
pub mod platform;
pub use app::BdsApp;

View File

@@ -4,6 +4,10 @@ use muda::{Menu, MenuEvent, MenuItem, PredefinedMenuItem, Submenu};
use crate::app::Message;
/// Build the native menu bar with standard application menus.
///
/// On macOS, also calls `init_for_nsapp()` to register the menu with AppKit.
/// This requires an active NSApplication, so it will silently fail in
/// test contexts without one (muda returns an error that we discard).
pub fn build_menu_bar() -> Menu {
let menu = Menu::new();