legacy builds store settings separately (#1509)

This commit is contained in:
Alex Xu authored and GitHub committed 2026-11-07 19:08:41 -08:00
1 parent 792e795808
commit 1b9710cadf
1 file changed
+3 -3
+3 -3
View File
@@ -23,7 +23,7 @@ import json
from pathlib import Path from pathlib import Path
import platform import platform
from PySide6.QtCore import (QSize, QUrl, Qt, Signal, QIODeviceBase, QEvent, QThread, QSettings, from PySide6.QtCore import (QSize, QUrl, Qt, Signal, QIODeviceBase, QEvent, QThread, QSettings,
QCoreApplication, QT_TRANSLATE_NOOP, QObject) QCoreApplication, QT_TRANSLATE_NOOP, QObject, qVersion)
from PySide6.QtGui import (QActionGroup, QColor, QIcon, QImage, QKeyEvent, QPixmap, QDesktopServices) from PySide6.QtGui import (QActionGroup, QColor, QIcon, QImage, QKeyEvent, QPixmap, QDesktopServices)
from PySide6.QtWidgets import (QApplication, QDialogButtonBox, QHBoxLayout, QLabel, QListWidgetItem, QMainWindow, QSizePolicy, QSystemTrayIcon, QFileDialog, QMessageBox, QDialog, QAbstractItemView, QListView, QTreeView, QWidget, from PySide6.QtWidgets import (QApplication, QDialogButtonBox, QHBoxLayout, QLabel, QListWidgetItem, QMainWindow, QSizePolicy, QSystemTrayIcon, QFileDialog, QMessageBox, QDialog, QAbstractItemView, QListView, QTreeView, QWidget,
QToolButton, QMenu) QToolButton, QMenu)
@@ -1504,8 +1504,8 @@ class KCCGUI(QObject, KCC_ui.Ui_mainWindow):
MW = kccwindow MW = kccwindow
GUI = self GUI = self
settings_key = 'kcc10' settings_key = 'kcc10'
if platform.system() == 'Darwin' and platform.machine() == 'x86_64': if Version(qVersion()) <= Version('6.4.3'):
settings_key += '-intel' settings_key += '-legacy'
self.settings = QSettings('ciromattia', settings_key) self.settings = QSettings('ciromattia', settings_key)
self.language = str(self.settings.value('language', i18n.DEFAULT_LANGUAGE)) self.language = str(self.settings.value('language', i18n.DEFAULT_LANGUAGE))
self.language = i18n.apply_language(self.language) self.language = i18n.apply_language(self.language)