Opt: Hide Rogue task on GUI

This commit is contained in:
LmeSzinc 2023-09-11 23:34:54 +08:00
parent be4ad40310
commit c41210d6fb
2 changed files with 6 additions and 8 deletions

View File

@ -16,12 +16,5 @@
"BattlePass",
"Assignment"
]
},
"Rogue": {
"menu": "list",
"page": "setting",
"tasks": [
"Rogue"
]
}
}

View File

@ -441,6 +441,11 @@ class ConfigGenerator:
tasks = list(tasks.keys())
deep_set(data, keys=[task_group, 'tasks'], value=tasks)
# Simulated universe is WIP, task won't show on GUI but can still be bound
# e.g. `RogueUI('src', task='Rogue')`
# Comment this for development
data.pop('Rogue')
return data
@cached_property
@ -513,6 +518,7 @@ class ConfigGenerator:
'Language': '{{language}}',
'Theme': '{{theme}}',
}
def update(file, *args):
new = deepcopy(template)
for dic in args:
@ -554,7 +560,6 @@ class ConfigGenerator:
self.generate_deploy_template()
class ConfigUpdater:
# source, target, (optional)convert_func
redirection = [