def METHOD_NAME(self, state: Enum):  # pylint: disable=E0202
    if state in [ActivationStates.DEFAULT, ActivationStates.HIDDEN]:
        self.set_wrapper_activated.emit(False)
        self.gb_options.setDisabled(True)
    elif state == ActivationStates.ACTIVATED:
        if not shutil.which("mangohud"):
            self.show_overlay_combo.setCurrentIndex(0)
            QMessageBox.warning(self, "Error", self.tr("Mangohud is not installed or not in path"))
            return
        cfg = self.core.lgd.config.get(f"{self.name}.env", "MANGOHUD_CONFIG", fallback="")
        split_config = cfg.split(",")
        for name in list(self.checkboxes.keys())[:4]:
            if name in split_config:
                split_config.remove(name)
        cfg = ",".join(split_config)
        for var_name, checkbox in list(self.checkboxes.items())[:4]:  # first three are by default activated
            if not checkbox.isChecked():
                if cfg:
                    cfg += f",{var_name}=0"
                else:
                    cfg = f"{var_name}=0"
        if cfg:
            config_helper.add_option(f"{self.name}.env", "MANGOHUD_CONFIG", cfg)
            self.environ_changed.emit(self.config_env_var_name)
        else:
            config_helper.remove_option(f"{self.name}.env", "MANGOHUD_CONFIG")
            self.environ_changed.emit(self.config_env_var_name)
        self.set_wrapper_activated.emit(True)