refactor: change EnterFullScreen to ToggleFullScreen

This commit is contained in:
amrbashir 2022-06-19 11:52:14 +02:00
parent a125e8a58c
commit 5c1b220cbb
No known key found for this signature in database
GPG key ID: BBD7A47A2003FF33
2 changed files with 3 additions and 3 deletions

View file

@ -454,12 +454,12 @@ pub enum NativeMenuItem {
/// - **macOS:** macOS require this menu item to enable "Select All" keyboard shortcut for your app.
/// - **Linux Wayland:** Not implmeneted.
SelectAll,
/// A native "Enter fullscreen" menu item.
/// A native "Toggle fullscreen" menu item.
///
/// ## platform-specific:
///
/// - **Windows / Linux:** Unsupported.
EnterFullScreen,
ToggleFullScreen,
/// A native "Minimize current window" menu item.
Minimize,
/// A native "Zoom" menu item.

View file

@ -125,7 +125,7 @@ impl Submenu {
NativeMenuItem::ShowAll => {
make_menu_item("Show All", selector("unhideAllApplications:"), None)
}
NativeMenuItem::EnterFullScreen => make_menu_item(
NativeMenuItem::ToggleFullScreen => make_menu_item(
"Toggle Full Screen",
selector("toggleFullScreen:"),
Some("Ctrl+F"),