windows: Dock menu impl 2 (#26010)

Closes #ISSUE

Release Notes:

- N/A *or* Added/Fixed/Improved ...
This commit is contained in:
张小白 2025-03-06 20:40:34 +08:00 committed by GitHub
parent 84f4d2630f
commit 05df3d1bd6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 163 additions and 62 deletions

View file

@ -189,6 +189,7 @@ pub(crate) trait Platform: 'static {
}
fn set_dock_menu(&self, menu: Vec<MenuItem>, keymap: &Keymap);
fn perform_dock_menu_action(&self, _action: usize) {}
fn add_recent_document(&self, _path: &Path) {}
fn on_app_menu_action(&self, callback: Box<dyn FnMut(&dyn Action)>);
fn on_will_open_app_menu(&self, callback: Box<dyn FnMut()>);