Move Alert dialog about restart into the conditional that fires only if locale was changed

This commit is contained in:
Miguel Jacq 2018-10-01 13:32:09 +10:00
parent 29b1b97282
commit 9aa9dc39a1
No known key found for this signature in database
GPG key ID: EEA4341C6D97A0B6

View file

@ -850,7 +850,7 @@ class SettingsDialog(QtWidgets.QDialog):
notice = strings.translations[new_locale]['gui_settings_language_changed_notice']
else:
notice = strings._('gui_settings_language_changed_notice')
Alert(self.common, notice, QtWidgets.QMessageBox.Information)
Alert(self.common, notice, QtWidgets.QMessageBox.Information)
# Save the new settings
settings.save()