Skip to content

Commit 814cb61

Browse files
committed
minor
1 parent e333371 commit 814cb61

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

backend/config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
MODE_CONFIG_PATH = os.path.join(os.path.dirname(os.path.dirname(__file__)), 'settings.ini')
2424
if not os.path.exists(os.path.join(os.path.dirname(os.path.dirname(__file__)), 'settings.ini')):
2525
# 如果没有配置文件,默认使用中文
26-
with open(os.path.join(os.path.dirname(os.path.dirname(__file__)), 'settings.ini'), mode='w', encoding='uft-8') as f:
26+
with open(os.path.join(os.path.dirname(os.path.dirname(__file__)), 'settings.ini'), mode='w', encoding='utf-8') as f:
2727
f.write('[DEFAULT]\n')
2828
f.write('Interface = 简体中文\n')
2929
f.write('Language = ch\n')

gui.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ def _interface_event_handler(self, event, values):
384384
@staticmethod
385385
def set_config(config_file, interface, language_code, mode):
386386
# 写入配置文件
387-
with open(config_file, mode='w', encoding='uft-8') as f:
387+
with open(config_file, mode='w', encoding='utf-8') as f:
388388
f.write('[DEFAULT]\n')
389389
f.write(f'Interface = {interface}\n')
390390
f.write(f'Language = {language_code}\n')

0 commit comments

Comments
 (0)