mirror of
https://github.com/SoongNoonien/mpdevil.git
synced 2023-08-10 21:12:44 +03:00
fixed autoremove
This commit is contained in:
parent
3be9589b75
commit
32157bb609
@ -937,12 +937,12 @@ class TrackView(Gtk.Box):
|
|||||||
def on_player_changed(self, *args):
|
def on_player_changed(self, *args):
|
||||||
if not self.client.song_to_delete == "": #TODO should be in Client class
|
if not self.client.song_to_delete == "": #TODO should be in Client class
|
||||||
status=self.client.status()
|
status=self.client.status()
|
||||||
if not status["song"] == "0" and self.client.playlistinfo()[0]["file"] == self.client.song_to_delete:
|
if not status["song"] == "0":
|
||||||
self.client.delete(0)
|
if self.client.playlistinfo()[0]["file"] == self.client.song_to_delete:
|
||||||
|
self.client.delete(0)
|
||||||
self.client.song_to_delete=""
|
self.client.song_to_delete=""
|
||||||
else:
|
else:
|
||||||
self.refresh_selection()
|
self.refresh_selection()
|
||||||
self.client.song_to_delete=""
|
|
||||||
else:
|
else:
|
||||||
self.refresh_selection()
|
self.refresh_selection()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user