Skip to content

Commit 1d0c890

Browse files
committed
Fix the preferences not loading / saving correctly (needed to be done after paths were set)
1 parent 427b118 commit 1d0c890

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

config.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ def defPaths(customSavePath=None):
107107
global clientHash
108108
global version
109109
global experimentalFeatures
110+
global language
110111

111112
pyfalog.debug("Configuring Pyfa")
112113

@@ -184,12 +185,13 @@ def defPaths(customSavePath=None):
184185
# saveddata db location modifier, shouldn't ever need to touch this
185186
eos.config.saveddata_connectionstring = "sqlite:///" + saveDB + "?check_same_thread=False"
186187
eos.config.gamedata_connectionstring = "sqlite:///" + gameDB + "?check_same_thread=False"
187-
eos.config.set_lang(language)
188188

189189
# initialize the settings
190-
from service.settings import EOSSettings
190+
from service.settings import EOSSettings, LocaleSettings
191191
eos.config.settings = EOSSettings.getInstance().EOSSettings # this is kind of confusing, but whatever
192192

193+
language = language or LocaleSettings.getInstance().get('locale')
194+
eos.config.set_lang(language)
193195

194196
def defLogging():
195197
global debug

0 commit comments

Comments
 (0)