fix(i18n): 首启根据settings.json的locale信息正确加载语言

This commit is contained in:
2026-07-28 15:55:59 +08:00
parent 68aa056359
commit ed02b48d80
+5
View File
@@ -351,6 +351,11 @@ class MainWindow(QMainWindow):
self.load_swap_gcode_to_combo()
self.restore_settings_to_ui()
self.connect_option_signals()
# 确保语言状态与保存的 locale 一致
saved_locale = self.language_combo.currentData()
if saved_locale:
i18n_switch(saved_locale)
self._refresh_ui_texts()
self._loading_settings = False
self.update_total_summary()
self.update_output_preview()