Fixed a few bugs

This commit is contained in:
Manuel Cortez 2016-07-12 05:00:07 -05:00
parent ed29923d2e
commit 17977d2a88
2 changed files with 5 additions and 1 deletions

View File

@ -365,6 +365,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(_(u"Removed audio from library")) output.speak(_(u"Removed audio from library"))
self.tab.list.remove_item(self.tab.list.get_selected())
def move_to_album(self, *args, **kwargs): def move_to_album(self, *args, **kwargs):
album = selector.audioAlbum(_(u"Select the album where you want to move this song"), self.session) album = selector.audioAlbum(_(u"Select the album where you want to move this song"), self.session)

View File

@ -344,7 +344,10 @@ class Controller(object):
self.session.soundplayer.play("chat.ogg") self.session.soundplayer.play("chat.ogg")
def set_online(self): def set_online(self):
r = self.session.vk.client.account.setOnline() try:
r = self.session.vk.client.account.setOnline()
except:
log.error("Error in setting online for the current user")
def create_unread_messages(self): def create_unread_messages(self):
msgs = self.session.vk.client.messages.getDialogs(count=200, unread=1) msgs = self.session.vk.client.messages.getDialogs(count=200, unread=1)