Fix invalid condition

This commit is contained in:
Pierre HUBERT 2022-10-01 16:35:08 +02:00
parent ba6f92e168
commit 599cf7626f
2 changed files with 1 additions and 2 deletions

1
.gitignore vendored
View File

@ -32,7 +32,6 @@
/build/
# Web related
lib/generated_plugin_registrant.dart
# Symbolication related
app.*.symbols

View File

@ -55,7 +55,7 @@ class _MusicPlayerState extends State<MusicPlayer> {
// Automatically choose next music if required
if (currMusicPos >= _stack.length) {
var list = _playFilteredMusics
var list = (_playFilteredMusics && (_filteredList?.length ?? 0) > 1)
? _filteredList ?? widget.musicsList
: widget.musicsList;
var nextId = rng.nextInt(list.length);