fix:issue 81 @Do1e

This commit is contained in:
lan committed 2023-08-16 10:02:21 +08:00
1 parent d91d64cad5
commit c4e14be86b
1 file changed
+1 -1
+1 -1
View File
@@ -41,7 +41,7 @@ class Settings:
for line in f.readlines():
key, value = line.strip().split('=')
# 将字符串转换为原本的类型
if value.isdigit():
if isinstance(default_value[key], int):
value = int(value)
default_value[key] = value
# 更新self