Set OnionShare language based on the locale stored in settings, and prompt user to restart OnionShare after changing their language

This commit is contained in:
Micah Lee 2018-09-30 17:06:29 -07:00
parent 08c01db69d
commit 8d44c0f729
6 changed files with 55 additions and 35 deletions

View file

@ -57,9 +57,10 @@ class OnionShareGui(QtWidgets.QMainWindow):
self.setWindowIcon(QtGui.QIcon(self.common.get_resource_path('images/logo.png')))
self.setMinimumWidth(850)
# Load settings
# Load settings, if a custom config was passed in
self.config = config
self.common.load_settings(self.config)
if self.config:
self.common.load_settings(self.config)
# System tray
menu = QtWidgets.QMenu()