Update display of no length

This commit is contained in:
Flamefire committed 2014-05-07 20:20:44 +02:00
1 parent 235ce266e5
commit 9695e98bbb
2 files changed
+4 -1

No files matched your search

@@ -137,7 +137,7 @@ namespace VocaluxeLib.Menu.SongMenu
_Tiles[i].Selected = _Locked == i + _Offset;
}
if (_Length < 0 && CBase.Sound.GetLength(_PreviewSongStream) > 0 && CBase.Songs.IsInCategory())
if (_Length < 0 && CBase.Songs.IsInCategory() && CBase.Sound.GetLength(_PreviewSongStream) > 0)
_UpdateLength(CBase.Songs.GetVisibleSong(_PreviewId));
}
@@ -215,6 +215,8 @@ namespace VocaluxeLib.Menu.SongMenu
_SongLength.Text = min.ToString("00") + ":" + sec.ToString("00");
_Length = time;
}
else
_SongLength.Text = "...";
}
public override void OnShow()