mirror of
https://github.com/mpv-player/mpv
synced 2025-04-01 23:00:41 +00:00
mac/menu: fix touch bar menu item
the check broke when the runtime check was removed, eg the menu item was never added to the menu. since we only add the menu item to the config when touch bar support is available the check is completely unnecessary.
This commit is contained in:
parent
035906dad5
commit
37990597c7
@ -257,12 +257,6 @@ class MenuBar: NSObject {
|
||||
menuConfigs[menuConfigIndex].menuItem = item
|
||||
|
||||
for (subConfigIndex, subConfig) in (menuConfig.configs ?? []).enumerated() {
|
||||
#if HAVE_MACOS_TOUCHBAR
|
||||
if subConfig.action == "toggleTouchBarCustomizationPalette:" {
|
||||
continue
|
||||
}
|
||||
#endif
|
||||
|
||||
if subConfig.name == "Show log File…" && ProcessInfo.processInfo.environment["MPVBUNDLE"] != "true" {
|
||||
continue
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user