mirror of
https://github.com/onionshare/onionshare.git
synced 2025-08-13 16:45:52 -04:00
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:
parent
08c01db69d
commit
8d44c0f729
6 changed files with 55 additions and 35 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue