mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-27 06:47:07 -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.triggered.connect(self.open_settings)
|
||||
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.triggered.connect(self.close)
|
||||
|
||||
|
@ -883,8 +883,12 @@ class SettingsDialog(QtWidgets.QDialog):
|
||||
Help button clicked.
|
||||
"""
|
||||
self.common.log('SettingsDialog', 'help_clicked')
|
||||
help_site = 'https://github.com/micahflee/onionshare/wiki'
|
||||
QtGui.QDesktopServices.openUrl(QtCore.QUrl(help_site))
|
||||
SettingsDialog.open_help()
|
||||
|
||||
@staticmethod
|
||||
def open_help():
|
||||
help_url = 'https://github.com/micahflee/onionshare/wiki'
|
||||
QtGui.QDesktopServices.openUrl(QtCore.QUrl(help_url))
|
||||
|
||||
def settings_from_fields(self):
|
||||
"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user