From 1d0c890c230c6eb552ac0e6ccbf82e1a32aee16a Mon Sep 17 00:00:00 2001 From: blitzmann Date: Sat, 27 Jun 2020 21:05:00 -0400 Subject: [PATCH] Fix the preferences not loading / saving correctly (needed to be done after paths were set) --- config.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config.py b/config.py index abf260f7f..78848ae9a 100644 --- a/config.py +++ b/config.py @@ -107,6 +107,7 @@ def defPaths(customSavePath=None): global clientHash global version global experimentalFeatures + global language pyfalog.debug("Configuring Pyfa") @@ -184,12 +185,13 @@ def defPaths(customSavePath=None): # saveddata db location modifier, shouldn't ever need to touch this eos.config.saveddata_connectionstring = "sqlite:///" + saveDB + "?check_same_thread=False" eos.config.gamedata_connectionstring = "sqlite:///" + gameDB + "?check_same_thread=False" - eos.config.set_lang(language) # initialize the settings - from service.settings import EOSSettings + from service.settings import EOSSettings, LocaleSettings eos.config.settings = EOSSettings.getInstance().EOSSettings # this is kind of confusing, but whatever + language = language or LocaleSettings.getInstance().get('locale') + eos.config.set_lang(language) def defLogging(): global debug