From 99e4979b01c7df50e7cfc3cdbf652d52ba3b2138 Mon Sep 17 00:00:00 2001 From: Guido Cella Date: Sat, 26 Oct 2024 09:41:44 +0200 Subject: [PATCH] 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. --- osdep/mac/menu_bar.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/osdep/mac/menu_bar.swift b/osdep/mac/menu_bar.swift index a43f55f1ea..2dd94ca625 100644 --- a/osdep/mac/menu_bar.swift +++ b/osdep/mac/menu_bar.swift @@ -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"),