store mac intel settings separately from arm (#1499)
This commit is contained in:
1 parent
dbe5cc0418
commit
9f9b56a59d
1 file changed
+5
-1
@@ -21,6 +21,7 @@ from datetime import datetime, timezone
|
|||||||
import itertools
|
import itertools
|
||||||
import json
|
import json
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
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)
|
||||||
from PySide6.QtGui import (QActionGroup, QColor, QIcon, QImage, QKeyEvent, QPixmap, QDesktopServices)
|
from PySide6.QtGui import (QActionGroup, QColor, QIcon, QImage, QKeyEvent, QPixmap, QDesktopServices)
|
||||||
@@ -1481,7 +1482,10 @@ class KCCGUI(QObject, KCC_ui.Ui_mainWindow):
|
|||||||
APP = kccapp
|
APP = kccapp
|
||||||
MW = kccwindow
|
MW = kccwindow
|
||||||
GUI = self
|
GUI = self
|
||||||
self.settings = QSettings('ciromattia', 'kcc10')
|
settings_key = 'kcc10'
|
||||||
|
if platform.system() == 'Darwin' and platform.machine() == 'x86_64':
|
||||||
|
settings_key += '-intel'
|
||||||
|
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)
|
||||||
self.setupUi(MW)
|
self.setupUi(MW)
|
||||||
|
|||||||
Reference in new issue
Block a user