fix oopsie

This commit is contained in:
me 2024-10-13 15:43:55 +00:00
parent ebcf0dca68
commit 47873d85d5

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;