Skip to content

Commit

Permalink
修复加载空串json的问题;更新文档。
Browse files Browse the repository at this point in the history
  • Loading branch information
LiuJiewenTT committed Feb 13, 2024
1 parent 0f9cc9f commit 10de530
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@
}
],
"cwd": ".", # 运行时的工作目录。
"exec_noWindow": true, # 运行后端时保持无窗口状态
"printConfigOnWrite": false, # 写入配置时是否打印内容
"log_KeepFlushing": true, # 是否实时刷新写入日志的内容。
"server_curselection": [ # 当前选择的,在服务器列表中供选择的服务器选项
"B服" # 使用“显示名称”而非“对应参数值”。
],
Expand All @@ -82,10 +85,7 @@
200 # 高度。单位:像素
],
"resultBonus_pics_success_list": null, # 运行后报告显示的在程序运行正常时的表情包。同上splash_ImgPathInfoList的格式。
"resultBonus_pics_fail_list": null, # 运行后报告显示的在程序运行出错时的表情包。同上splash_ImgPathInfoList的格式。
"exec_noWindow": true, # 运行后端时保持无窗口状态
"printConfigOnWrite": false, # 写入配置时是否打印内容
"log_KeepFlushing": true # 是否实时刷新写入日志的内容。
"resultBonus_pics_fail_list": null # 运行后报告显示的在程序运行出错时的表情包。同上splash_ImgPathInfoList的格式。
}
```

Expand Down
3 changes: 2 additions & 1 deletion src/CBJQ_SS_FrontEnd_tk/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -950,7 +950,8 @@ def PackGlobalConfig(AppConfig: dict) -> dict:
if osp.exists(config_filename):
with open(config_filename, 'r', encoding='UTF-8') as f:
config_content = f.read()
appConfig: dict = orjson.loads(config_content)
if config_content:
appConfig: dict = orjson.loads(config_content)
if appConfig is not None:
ApplyGlobalConfig(appConfig)

Expand Down

0 comments on commit 10de530

Please sign in to comment.