some functions present in the player should not freeze the app while taking place

This commit is contained in:
2019-04-11 17:43:52 -05:00
parent a0d43ebe0e
commit 04f734bebe
2 changed files with 14 additions and 17 deletions

View File

@@ -754,20 +754,10 @@ class Controller(object):
self.search("me_audio").play_all()
def menu_play_next(self, *args, **kwargs):
return player.player.play_next()
# b = self.get_current_buffer()
# if hasattr(b, "play_next"):
# b.play_next()
# else:
# self.search("me_audio").play_next()
pub.sendMessage("play-next")
def menu_play_previous(self, *args, **kwargs):
return player.player.play_previous()
# b = self.get_current_buffer()
# if hasattr(b, "play_previous"):
# b.play_previous()
# else:
# self.search("me_audio").play_previous()
pub.sendMessage("play-previous")
def menu_play_all(self, *args, **kwargs):
b = self.get_current_buffer()