1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-17 20:34:58 +00:00

mac/menu: use show-text instead of old osc script messages

1a558bf5c2 made osc-*list script messages aliases to show-texting the
relative properties, so use show-text directly in the menu. Also
increase the duration to be the same as the OSC buttons because the
default of 1 second is too short.
This commit is contained in:
Guido Cella 2024-10-26 09:41:44 +02:00 committed by Kacper Michajłow
parent c6883c4a56
commit 99e4979b01

View File

@ -199,9 +199,9 @@ class MenuBar: NSObject {
Config(name: "Decrease Speed", action: #selector(command(_:)), target: self, command: "add speed -0.1"),
Config(name: "Reset Speed", action: #selector(command(_:)), target: self, command: "set speed 1.0"),
Config(type: .separator),
Config(name: "Show Playlist", action: #selector(command(_:)), target: self, command: "script-message osc-playlist"),
Config(name: "Show Chapters", action: #selector(command(_:)), target: self, command: "script-message osc-chapterlist"),
Config(name: "Show Tracks", action: #selector(command(_:)), target: self, command: "script-message osc-tracklist"),
Config(name: "Show Playlist", action: #selector(command(_:)), target: self, command: "show-text ${playlist} 3000"),
Config(name: "Show Chapters", action: #selector(command(_:)), target: self, command: "show-text ${chapter-list} 3000"),
Config(name: "Show Tracks", action: #selector(command(_:)), target: self, command: "show-text ${track-list} 3000"),
Config(type: .separator),
Config(name: "Next File", action: #selector(command(_:)), target: self, command: "playlist-next"),
Config(name: "Previous File", action: #selector(command(_:)), target: self, command: "playlist-prev"),