def METHOD_NAME(self, workers: str):
    if workers := int(workers):
        self.core.lgd.config.set("Legendary", "max_workers", str(workers))
    else:
        self.core.lgd.config.remove_option("Legendary", "max_workers")
    self.core.lgd.save_config()