Skip to content

Commit

Permalink
Частичный фикс функции добавления трека в очередь.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zensonaton committed Jan 25, 2024
1 parent 4876e55 commit 4a799dc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/services/audio_player.dart
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,10 @@ class VKMusicPlayer {
tag: audio.asMediaItem,
),
);
_audiosQueue!.add(audio);
_audiosQueue!.insert(
nextTrackIndex ?? 0,
audio,
);
}

/// Включает или отключает Discord Rich Presence.
Expand Down

0 comments on commit 4a799dc

Please sign in to comment.