mirror of
https://github.com/evilsocket/opensnitch.git
synced 2025-03-04 08:34:40 +01:00
UI: added help menu
Added help menu to load the wiki.
This commit is contained in:
parent
7c647f5782
commit
60005d7497
1 changed files with 6 additions and 0 deletions
|
@ -30,6 +30,8 @@ class UIService(ui_pb2_grpc.UIServicer, QtWidgets.QGraphicsObject):
|
|||
_version_warning_trigger = QtCore.pyqtSignal(str, str)
|
||||
_status_change_trigger = QtCore.pyqtSignal()
|
||||
|
||||
HELP_URL = "https://github.com/gustavo-iniguez-goya/opensnitch/wiki/Configurations"
|
||||
|
||||
def __init__(self, app, on_exit):
|
||||
super(UIService, self).__init__()
|
||||
self._db = Database.instance()
|
||||
|
@ -109,6 +111,10 @@ class UIService(ui_pb2_grpc.UIServicer, QtWidgets.QGraphicsObject):
|
|||
self._tray = QtWidgets.QSystemTrayIcon(self.off_icon)
|
||||
self._tray.setContextMenu(self._menu)
|
||||
|
||||
self._menu.addAction("Help").triggered.connect(
|
||||
lambda: QtGui.QDesktopServices.openUrl(QtCore.QUrl(self.HELP_URL))
|
||||
)
|
||||
|
||||
self._stats_action.triggered.connect(self._show_stats_dialog)
|
||||
self._menu.addAction("Close").triggered.connect(self._on_exit)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue