Merge branch 'gui_dev' into dev
This commit is contained in:
@@ -522,7 +522,9 @@ class AppConfig:
|
||||
|
||||
if current_stage:
|
||||
item_match: List[str] = re.findall(
|
||||
r"^(?!\[)([\u4e00-\u9fa5A-Za-z0-9\-]+)\s*:\s*([\d,]+)(?:\s*\(\+[\d,]+\))?", line, re.M
|
||||
r"^(?!\[)([\u4e00-\u9fa5A-Za-z0-9\-]+)\s*:\s*([\d,]+)(?:\s*\(\+[\d,]+\))?",
|
||||
line,
|
||||
re.M,
|
||||
)
|
||||
for item, total in item_match:
|
||||
# 解析数值时去掉逗号 (如 2,160 -> 2160)
|
||||
@@ -747,6 +749,12 @@ class AppConfig:
|
||||
class GlobalConfig(QConfig):
|
||||
"""全局配置"""
|
||||
|
||||
function_HomeImageMode = OptionsConfigItem(
|
||||
"Function",
|
||||
"HomeImageMode",
|
||||
"默认",
|
||||
OptionsValidator(["默认", "自定义", "主题图像"]),
|
||||
)
|
||||
function_HistoryRetentionTime = OptionsConfigItem(
|
||||
"Function", "HistoryRetentionTime", 0, OptionsValidator([7, 15, 30, 60, 0])
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user