Skip to content

Commit face28b

Browse files
authored
Merge b2e8296 into 7afc3ed
2 parents 7afc3ed + b2e8296 commit face28b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

source/gui/contextHelp.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import wx
1111
from logHandler import log
1212
import documentationUtils
13+
import globalVars
1314

1415

1516
def writeRedirect(helpId: str, helpFilePath: str, contextHelpPath: str):
@@ -73,6 +74,9 @@ def bindHelpEvent(helpId: str, window: wx.Window):
7374

7475

7576
def _onEvtHelp(helpId: str, evt: wx.HelpEvent):
77+
if globalVars.appArgs.secure:
78+
# Disable context help in secure screens to avoid opening a browser with system-wide privileges.
79+
return
7680
# Don't call evt.skip. Events bubble upwards through parent controls.
7781
# Context help for more specific controls should override the less specific parent controls.
7882
showHelp(helpId)

0 commit comments

Comments
 (0)