Keep system language when changing settings
- when language was set to "system settings" and you changed any setting while BM was running, it switched the language to English.
This commit is contained in:
parent
233a30f114
commit
de2fb17959
|
@ -2360,8 +2360,7 @@ class MyForm(settingsmixin.SMainWindow):
|
||||||
|
|
||||||
lang = str(self.settingsDialogInstance.ui.languageComboBox.itemData(self.settingsDialogInstance.ui.languageComboBox.currentIndex()).toString())
|
lang = str(self.settingsDialogInstance.ui.languageComboBox.itemData(self.settingsDialogInstance.ui.languageComboBox.currentIndex()).toString())
|
||||||
shared.config.set('bitmessagesettings', 'userlocale', lang)
|
shared.config.set('bitmessagesettings', 'userlocale', lang)
|
||||||
logger.debug("Setting locale to %s", lang)
|
change_translation(l10n.getTranslationLanguage())
|
||||||
change_translation(lang)
|
|
||||||
|
|
||||||
if int(shared.config.get('bitmessagesettings', 'port')) != int(self.settingsDialogInstance.ui.lineEditTCPPort.text()):
|
if int(shared.config.get('bitmessagesettings', 'port')) != int(self.settingsDialogInstance.ui.lineEditTCPPort.text()):
|
||||||
if not shared.safeConfigGetBoolean('bitmessagesettings', 'dontconnect'):
|
if not shared.safeConfigGetBoolean('bitmessagesettings', 'dontconnect'):
|
||||||
|
|
Reference in New Issue
Block a user