mirror of
https://github.com/SoongNoonien/mpdevil.git
synced 2023-08-10 21:12:44 +03:00
fixed unintended behavior on stopped state
This commit is contained in:
parent
3414212173
commit
b8d1f9aafc
@ -306,14 +306,11 @@ class TrackView(Gtk.Box):
|
|||||||
for song in songs:
|
for song in songs:
|
||||||
self.client.add(song["file"])
|
self.client.add(song["file"])
|
||||||
else:
|
else:
|
||||||
if self.settings.get_boolean("add-album") and not force:
|
if self.settings.get_boolean("add-album") and not force and not self.client.status()["state"] == "stop":
|
||||||
self.selection.handler_block(self.title_change)
|
self.selection.handler_block(self.title_change)
|
||||||
status=self.client.status()
|
status=self.client.status()
|
||||||
try:
|
self.client.moveid(status["songid"], 0)
|
||||||
self.client.moveid(status["songid"], 0) #bad song index possible
|
self.song_to_delete=self.client.playlistinfo()[0]["file"]
|
||||||
self.song_to_delete=self.client.playlistinfo()[0]["file"]
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
self.selection.handler_unblock(self.title_change)
|
self.selection.handler_unblock(self.title_change)
|
||||||
try:
|
try:
|
||||||
self.client.delete((1,)) # delete all songs, but the first. #bad song index possible
|
self.client.delete((1,)) # delete all songs, but the first. #bad song index possible
|
||||||
|
Loading…
Reference in New Issue
Block a user