profile_switcher.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:sc-controller 作者: kozec 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号