-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6758525
commit 826a5fc
Showing
5 changed files
with
16 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1117,6 +1117,8 @@ impl<R: Runtime> Window<R> { | |
{ | ||
let _ = menu.remove_for_gtk_window(&self.gtk_window()?); | ||
} | ||
#[cfg(target_os = "macos")] | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
lucasfernog
Author
Member
|
||
menu.remove_for_nsapp(); | ||
} | ||
|
||
let prev_menu = current_menu.take().map(|m| m.1); | ||
|
@lucasfernog Removing the menu from a window shouldn't remove the global menu on macOS. Same goes for when setting a window menu, it shouldn't set the global menu on macOS. If you want to modify the global macOS menu, you should use
app.set_menu
andapp.remove_menu