Skip to content

Commit ef37b01

Browse files
committed
fix:首次打开时重开图标未初始化
1 parent 0aee018 commit ef37b01

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/superGUI.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,6 @@ def read_or_create_game_setting(self):
351351
self.gameMode = config.getint('CUSTOM', 'gamemode')
352352
self.board_constraint = config["CUSTOM"]["board_constraint"]
353353
self.attempt_times_limit = config.getint('CUSTOM', 'attempt_times_limit')
354-
self.label_2.reloadFace(self.pixSize)
355354
else:
356355
# 找不到配置文件就初始化
357356
self.min3BV = 100
@@ -452,6 +451,7 @@ def read_or_create_game_setting(self):
452451
}
453452
with open(self.game_setting_path, 'w', encoding='utf-8') as configfile:
454453
config.write(configfile) # 将对象写入文件
454+
self.label_2.reloadFace(self.pixSize)
455455
return _scoreBoardTop, _scoreBoardLeft
456456

457457
def read_or_create_record(self):

0 commit comments

Comments
 (0)