mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-22 08:37:42 +00:00
Opt: Hide Rogue task on GUI
This commit is contained in:
parent
be4ad40310
commit
c41210d6fb
@ -16,12 +16,5 @@
|
||||
"BattlePass",
|
||||
"Assignment"
|
||||
]
|
||||
},
|
||||
"Rogue": {
|
||||
"menu": "list",
|
||||
"page": "setting",
|
||||
"tasks": [
|
||||
"Rogue"
|
||||
]
|
||||
}
|
||||
}
|
@ -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 = [
|
||||
|
Loading…
Reference in New Issue
Block a user