mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-28 15:27:11 -05:00
Fix crash when clicking Help from the systray
This commit is contained in:
parent
b4de634b7a
commit
8ca34fadd9
@ -65,7 +65,7 @@ class OnionShareGui(QtWidgets.QMainWindow):
|
|||||||
self.settings_action = menu.addAction(strings._('gui_settings_window_title', True))
|
self.settings_action = menu.addAction(strings._('gui_settings_window_title', True))
|
||||||
self.settings_action.triggered.connect(self.open_settings)
|
self.settings_action.triggered.connect(self.open_settings)
|
||||||
help_action = menu.addAction(strings._('gui_settings_button_help', True))
|
help_action = menu.addAction(strings._('gui_settings_button_help', True))
|
||||||
help_action.triggered.connect(SettingsDialog.help_clicked)
|
help_action.triggered.connect(SettingsDialog.open_help)
|
||||||
exit_action = menu.addAction(strings._('systray_menu_exit', True))
|
exit_action = menu.addAction(strings._('systray_menu_exit', True))
|
||||||
exit_action.triggered.connect(self.close)
|
exit_action.triggered.connect(self.close)
|
||||||
|
|
||||||
|
@ -883,8 +883,12 @@ class SettingsDialog(QtWidgets.QDialog):
|
|||||||
Help button clicked.
|
Help button clicked.
|
||||||
"""
|
"""
|
||||||
self.common.log('SettingsDialog', 'help_clicked')
|
self.common.log('SettingsDialog', 'help_clicked')
|
||||||
help_site = 'https://github.com/micahflee/onionshare/wiki'
|
SettingsDialog.open_help()
|
||||||
QtGui.QDesktopServices.openUrl(QtCore.QUrl(help_site))
|
|
||||||
|
@staticmethod
|
||||||
|
def open_help():
|
||||||
|
help_url = 'https://github.com/micahflee/onionshare/wiki'
|
||||||
|
QtGui.QDesktopServices.openUrl(QtCore.QUrl(help_url))
|
||||||
|
|
||||||
def settings_from_fields(self):
|
def settings_from_fields(self):
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user