mirror of
https://github.com/SoongNoonien/mpdevil.git
synced 2023-08-10 21:12:44 +03:00
always emit 'periodic_signal' on reconnect
This commit is contained in:
parent
16129be7f3
commit
823d574ea4
@ -336,6 +336,7 @@ class Client(MPDClient):
|
|||||||
return True
|
return True
|
||||||
#connect successful
|
#connect successful
|
||||||
self.main_timeout_id=GLib.timeout_add(100, self.loop)
|
self.main_timeout_id=GLib.timeout_add(100, self.loop)
|
||||||
|
self.emitter.emit("periodic_signal")
|
||||||
self.emitter.emit("playlist")
|
self.emitter.emit("playlist")
|
||||||
self.emitter.emit("player")
|
self.emitter.emit("player")
|
||||||
self.emitter.emit("playing_file_changed")
|
self.emitter.emit("playing_file_changed")
|
||||||
@ -343,7 +344,6 @@ class Client(MPDClient):
|
|||||||
self.emitter.emit("mixer")
|
self.emitter.emit("mixer")
|
||||||
self.emitter.emit("update")
|
self.emitter.emit("update")
|
||||||
self.emitter.emit("reconnected")
|
self.emitter.emit("reconnected")
|
||||||
# self.emitter.emit("periodic_signal")
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
class MPRISInterface(dbus.service.Object): #TODO emit Seeked if needed
|
class MPRISInterface(dbus.service.Object): #TODO emit Seeked if needed
|
||||||
|
Loading…
Reference in New Issue
Block a user