From 8a37f0f693bc70252acbbe3a1e68ed4b11da197f Mon Sep 17 00:00:00 2001 From: der richter Date: Tue, 5 Mar 2024 01:18:32 +0100 Subject: mac/menu: add explicit menu type instead of an inferred type with the use of an explicit type we can removed inferred type checks like separators/services menu by name or menus by sub configs. --- video/out/mac/window.swift | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'video/out/mac/window.swift') diff --git a/video/out/mac/window.swift b/video/out/mac/window.swift index 3084df2376..1fbb2374ec 100644 --- a/video/out/mac/window.swift +++ b/video/out/mac/window.swift @@ -105,11 +105,11 @@ class Window: NSWindow, NSWindowDelegate { unfScreen = screen if let app = NSApp as? Application { - app.menuBar.register(#selector(setHalfWindowSize), key: .halfSize) - app.menuBar.register(#selector(setNormalWindowSize), key: .normalSize) - app.menuBar.register(#selector(setDoubleWindowSize), key: .doubleSize) - app.menuBar.register(#selector(performMiniaturize(_:)), key: .minimize) - app.menuBar.register(#selector(performZoom(_:)), key: .zoom) + app.menuBar.register(#selector(setHalfWindowSize), key: .itemHalfSize) + app.menuBar.register(#selector(setNormalWindowSize), key: .itemNormalSize) + app.menuBar.register(#selector(setDoubleWindowSize), key: .itemDoubleSize) + app.menuBar.register(#selector(performMiniaturize(_:)), key: .itemMinimize) + app.menuBar.register(#selector(performZoom(_:)), key: .itemZoom) } } -- cgit v1.2.3