apps: Change playlist context menu behavior, fix FS#13336

Rename the "Clear List & Play" options to simply Play and Play
Shuffled, and change their behavior slightly. Previously they
would leave the current song playing, but now they will start
playing the first song of the new playlist immediately.

Shuffle options are now consistently hidden whenever a single
file is selected.

Fixes FS#13336 -- Play Shuffled is now always displayed where
applicable, regardless of playback state.

Change-Id: Idd454b4f9ab2c98cda3ce0389add747a3273fb42
This commit is contained in:
Aidan MacDonald 2022-04-09 15:55:10 +01:00
parent 7363d65f10
commit 70087fb9f3
3 changed files with 173 additions and 185 deletions

View file

@ -15807,16 +15807,16 @@
</phrase>
<phrase>
id: LANG_CLEAR_LIST_AND_PLAY_NEXT
desc: in onplay menu. Replace current playlist with selected tracks
desc: deprecated
user: core
<source>
*: "Clear List & Play Next"
*: ""
</source>
<dest>
*: "Clear List & Play Next"
*: ""
</dest>
<voice>
*: "Clear List & Play Next"
*: ""
</voice>
</phrase>
<phrase>
@ -15877,16 +15877,16 @@
</phrase>
<phrase>
id: LANG_CLEAR_LIST_AND_PLAY_SHUFFLED
desc: in onplay menu. Replace current playlist with selected tracks in random order.
desc: deprecated
user: core
<source>
*: "Clear List & Play Shuffled"
*: ""
</source>
<dest>
*: "Clear List & Play Shuffled"
*: ""
</dest>
<voice>
*: "Clear List & Play Shuffled"
*: ""
</voice>
</phrase>
<phrase>
@ -16326,3 +16326,31 @@
*: "Track Info"
</voice>
</phrase>
<phrase>
id: LANG_PLAY
desc: play selected file/directory, in playlist context menu
user: core
<source>
*: "Play"
</source>
<dest>
*: "Play"
</dest>
<voice>
*: "Play"
</voice>
</phrase>
<phrase>
id: LANG_PLAY_SHUFFLED
desc: play selected files in shuffled order, in playlist context menu
user: core
<source>
*: "Play Shuffled"
</source>
<dest>
*: "Play Shuffled"
</dest>
<voice>
*: "Play Shuffled"
</voice>
</phrase>