Skip to main content

register_new_window

Function register_new_window 

Source
pub fn register_new_window(build: impl Fn() -> AnyPiece + 'static)
Expand description

Register the builder behind File ▸ New Window and the macOS tab-bar “+” (docs/windows.md): each call opens another WindowKind::Normal window. A menu_role(MenuRole::NewWindow) item lowers to this action; without a registration it lowers disabled.

Day API ↩ Guides· daybrite.dev