1
0
mirror of https://github.com/TheFunny/ArisuAutoSweeper synced 2026-01-16 23:25:22 +00:00

Compare commits

..

1 Commits

Author SHA1 Message Date
RedDeadDepresso
76e27c5ee8
Merge ea2b9d67cd into 0d66a5c424 2023-12-25 16:30:24 +00:00
3 changed files with 14 additions and 19 deletions

12
MCE/config.json Normal file
View File

@ -0,0 +1,12 @@
{
"ResetDaily": false,
"LastRun": "2023-12-24 21:41:55",
"ResetTime": "11:21:30",
"RechargeAP": true,
"PreferredTemplate": "template1",
"Queue": [],
"Event": false,
"Templates": {
"template1": []
}
}

View File

@ -1,29 +1,12 @@
import customtkinter
import json
import sys
import os
from MCE.custom_widgets.ctk_notification import CTkNotification
class Config:
def __init__(self, linker, config_file):
self.default_config = {
"ResetDaily": False,
"LastRun": "2023-12-24 21:41:55",
"ResetTime": "11:21:30",
"RechargeAP": False,
"PreferredTemplate": "template1",
"Queue": [],
"Event": False,
"Templates": {
"template1": []
}
}
self.linker = linker
self.config_file = config_file
if not os.path.exists(self.config_file):
with open(self.config_file, "w") as f:
json.dump(self.default_config, f, indent=2)
self.config_data = self.read()
self.linker.widgets = self.set_values_to_none(self.config_data)
self.locked = False

View File

@ -52,7 +52,7 @@
},
"Mission": {
"name": "Mission/Commissions/Event",
"help": "Open MCE Manager for additional settings. Must be opened if it's your first time!"
"help": "Open MCE Manager for additional settings"
},
"Circle": {
"name": "Club",