Fixed an error when removing audio items from my audios buffer

This commit is contained in:
Manuel Cortez 2019-01-26 18:51:34 -06:00
parent 9f1a09689f
commit 0a90e1fe4a

View File

@ -571,6 +571,7 @@ class audioBuffer(feedBuffer):
result = self.session.vk.client.audio.delete(**args) result = self.session.vk.client.audio.delete(**args)
if int(result) == 1: if int(result) == 1:
output.speak(_("Removed audio from library")) output.speak(_("Removed audio from library"))
self.session.db[self.name]["items"].pop(self.tab.list.get_selected())
self.tab.list.remove_item(self.tab.list.get_selected()) self.tab.list.remove_item(self.tab.list.get_selected())
def move_to_album(self, *args, **kwargs): def move_to_album(self, *args, **kwargs):