def on_profile_changed(self, c, profile):
""" Called when controller profile is changed from daemon """
if not self.set_profile(profile, True):
if self._first_time:
def later():
# Cannot be executed right away, as profile-changed is
# emitted before DaemonManager finishes initiaalisation
self.emit('unknown-profile', profile)
GLib.idle_add(later)
self._first_time = False
评论列表
文章目录