Adds Settings and Help menu items to the systray

This commit is contained in:
Miguel Jacq 2017-05-27 17:14:59 +10:00
parent d25c6d949f
commit cc73c92e4b
No known key found for this signature in database
GPG Key ID: EEA4341C6D97A0B6

View File

@ -150,6 +150,10 @@ class OnionShareGui(QtWidgets.QMainWindow):
system = common.get_platform()
menu = QtWidgets.QMenu()
settingsAction = menu.addAction(strings._('gui_settings_window_title', True))
settingsAction.triggered.connect(self.open_settings)
helpAction = menu.addAction(strings._('gui_settings_button_help', True))
helpAction.triggered.connect(SettingsDialog.help_clicked)
exitAction = menu.addAction(strings._('systray_menu_exit', True))
exitAction.triggered.connect(self.close)