mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-15 22:19:18 +00:00
Opt: Skip saving if rows are the same to reduce logs
This commit is contained in:
parent
5a7097fc9d
commit
2ac396b18b
@ -686,7 +686,9 @@ class PlannerMixin(UI):
|
||||
with self.config.multi_set():
|
||||
# Set value
|
||||
for key, value in data.items():
|
||||
self.config.cross_set(f'Dungeon.Planner.{key}', value)
|
||||
current = self.config.cross_get(f'Dungeon.Planner.{key}', default={})
|
||||
if value != current:
|
||||
self.config.cross_set(f'Dungeon.Planner.{key}', value)
|
||||
# Remove other value
|
||||
remove = []
|
||||
for key, value in self.config.cross_get('Dungeon.Planner', default={}).items():
|
||||
|
Loading…
Reference in New Issue
Block a user