Allow addon Reports to specify a help button URL for options dialog

Fixes #10910
This commit is contained in:
prculley 2018-12-06 11:22:15 -06:00 committed by Nick Hall
parent 8fc03f85a1
commit 96e4707c89

View File

@ -581,7 +581,10 @@ class ReportDialog(ManagedWindow):
pass
def on_help_clicked(self, *obj):
from ...display import display_help
from ...display import display_help, display_url
if hasattr(self.options, 'help_url'):
display_url(self.options.help_url)
return
display_help(URL_REPORT_PAGE, self.report_name.replace(" ", "_"))
def on_style_edit_clicked(self, *obj):