fixed autoremove

This commit is contained in:
Martin Wagner 2020-03-03 22:54:55 +01:00
parent 3be9589b75
commit 32157bb609

View File

@ -937,12 +937,12 @@ class TrackView(Gtk.Box):
def on_player_changed(self, *args):
if not self.client.song_to_delete == "": #TODO should be in Client class
status=self.client.status()
if not status["song"] == "0" and self.client.playlistinfo()[0]["file"] == self.client.song_to_delete:
self.client.delete(0)
if not status["song"] == "0":
if self.client.playlistinfo()[0]["file"] == self.client.song_to_delete:
self.client.delete(0)
self.client.song_to_delete=""
else:
self.refresh_selection()
self.client.song_to_delete=""
else:
self.refresh_selection()