Add tab management, profiles, and pattern-specific delay ranges

This commit is contained in:
2025-11-30 16:23:08 +13:00
parent 92526ab05c
commit ce8596ca58
5 changed files with 1879 additions and 878 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -9,7 +9,9 @@ class Settings(dict):
def save(self):
try:
j = json.dumps(self, indent=4)
# Create a copy without lights and tab_order (these belong in profiles, not settings.json)
settings_to_save = {k: v for k, v in self.items() if k not in ["lights", "tab_order"]}
j = json.dumps(settings_to_save, indent=4)
with open(self.SETTINGS_FILE, 'w') as file:
file.write(j)
print("Settings saved successfully.")