fix oopsie

This commit is contained in:
Erica Z 2024-10-13 15:43:55 +00:00
parent b7385548c6
commit dd0536e5dd

View file

@ -9,6 +9,8 @@ class Ui.PlayQueueStore : Object, ListModel, Gtk.SelectionModel {
construct { construct {
this.inner.items_changed.connect ((position, removed, added) => { this.inner.items_changed.connect ((position, removed, added) => {
bool emit_signal = false;
if (this.playing_index >= position) { if (this.playing_index >= position) {
if (this.playing_index < position+removed) { if (this.playing_index < position+removed) {
this.playing_index = position; this.playing_index = position;