simplified MPRISInterface.Quit()

This commit is contained in:
Martin Wagner 2022-03-14 23:47:57 +01:00
parent 4766f3681d
commit 08a6b223e3

View File

@ -353,9 +353,7 @@ class MPRISInterface: # TODO emit Seeked if needed
self._window.present()
def Quit(self):
app_action_group=self._window.get_action_group("app")
quit_action=app_action_group.lookup_action("quit")
quit_action.activate()
self._window.get_application().quit()
# player methods
def Next(self):