Fix playlist name display and playlist selection (fix #490)
This commit is contained in:
1 parent
c2bed1bccb
commit
fda174816d
1 file changed
+5
-1
@@ -100,6 +100,8 @@ namespace VocaluxeLib.Menu
|
|||||||
protected int NumMinMedleySongs = 3;
|
protected int NumMinMedleySongs = 3;
|
||||||
protected int NumMaxMedleySongs = 10;
|
protected int NumMaxMedleySongs = 10;
|
||||||
|
|
||||||
|
private List<int> _PlaylistIDs;
|
||||||
|
|
||||||
public override void Init()
|
public override void Init()
|
||||||
{
|
{
|
||||||
base.Init();
|
base.Init();
|
||||||
@@ -188,6 +190,8 @@ namespace VocaluxeLib.Menu
|
|||||||
_SelectSlides[_SelectSlideSorting].AddValue(ss.ToString());
|
_SelectSlides[_SelectSlideSorting].AddValue(ss.ToString());
|
||||||
|
|
||||||
_SelectSlides[_SelectSlidePlaylist].Clear();
|
_SelectSlides[_SelectSlidePlaylist].Clear();
|
||||||
|
_SelectSlides[_SelectSlidePlaylist].NumVisible = 1; // Make sure that only one playlist at a time will be displayed (or the names overlap)
|
||||||
|
_PlaylistIDs = CBase.Playlist.GetIds();
|
||||||
List<string> playlists = CBase.Playlist.GetNames();
|
List<string> playlists = CBase.Playlist.GetNames();
|
||||||
for (int i = 0; i < playlists.Count; i++)
|
for (int i = 0; i < playlists.Count; i++)
|
||||||
{
|
{
|
||||||
@@ -220,7 +224,7 @@ namespace VocaluxeLib.Menu
|
|||||||
_SongMode = _SelectSlides[_SelectSlideSongMode].Selection;
|
_SongMode = _SelectSlides[_SelectSlideSongMode].Selection;
|
||||||
_Source = _SelectSlides[_SelectSlideSource].Selection;
|
_Source = _SelectSlides[_SelectSlideSource].Selection;
|
||||||
NumMedleySongs = NumMinMedleySongs + _SelectSlides[_SelectSlideNumMedleySongs].Selection;
|
NumMedleySongs = NumMinMedleySongs + _SelectSlides[_SelectSlideNumMedleySongs].Selection;
|
||||||
Playlist = _SelectSlides[_SelectSlidePlaylist].Selection;
|
Playlist = _PlaylistIDs[_SelectSlides[_SelectSlidePlaylist].Selection];
|
||||||
|
|
||||||
if (_SelectSlides[_SelectSlideSorting].Selection != _Sorting)
|
if (_SelectSlides[_SelectSlideSorting].Selection != _Sorting)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user