def refresh(self):

        if GpuManager.has_bbswitch():
            self._gpu_state = GpuManager.state()
        else:
            self._gpu_state = False
        self._set_on_off_label()
    def refresh(self):

        if GpuManager.has_bbswitch():
            self._gpu_state = GpuManager.state()
        else:
            self._gpu_state = False
        self._set_on_off_label()
    def _init_connection(self):

        if GpuManager.has_bbswitch():
            self._form.on_off_button.clicked.connect(self._change_gpu_state)
    def _init_connection(self):

        if GpuManager.has_bbswitch():
            self._form.on_off_button.clicked.connect(self._change_gpu_state)