Skip to content
Snippets Groups Projects
Commit 644baf4d authored by Allen, Bruce (CIV)'s avatar Allen, Bruce (CIV)
Browse files

make issue link clickable, issue 72

parent 35ec3c67
No related branches found
No related tags found
No related merge requests found
......@@ -65,7 +65,7 @@ from paths_examples import is_bundled, \
schedule_validate_examples_paths
from paths_gryphon import TRACE_GENERATED_OUTFILE_GRY
from examples_menu import fill_examples_menu
from message_popup import message_popup
from report_an_issue import report_an_issue
from discard_existing_mp import DiscardExistingMP
from startup_options import parse_startup_options
from mp_file_dialog import get_open_file_name, get_save_file_name, \
......@@ -299,7 +299,7 @@ class GUIManager(QObject):
# action report an issue
self.action_report_an_issue = QAction("Report an issue...", self)
self.action_report_an_issue.setToolTip("Report an issue about MP")
self.action_report_an_issue.triggered.connect(self.report_an_issue)
self.action_report_an_issue.triggered.connect(self._report_an_issue)
# action run/cancel
self.action_run_cancel = QAction(self)
......@@ -576,18 +576,8 @@ class GUIManager(QObject):
# Report an issue...
@Slot()
def report_an_issue(self):
text = "To report an issue please open the Monterey Phoenix Gryphon " \
"issue tracker at " \
"https://gitlab.nps.edu/monterey-phoenix/user-interfaces" \
'/gryphon/-/issues and click the "New issue" button.\n\n' \
"Please include the version of the Operating System you are " \
"using and that you are using Gryphon %s. " \
"If possible, please include a screen capture.\n\n" \
"Please de-identify screen capture and other " \
"submitted information as issues and related comments are " \
"public."%VERSION
message_popup(self.w, text)
def _report_an_issue(self):
report_an_issue(self.w)
# Open MP Code file
@Slot()
......
from PySide6.QtCore import Qt
from PySide6.QtWidgets import QMessageBox
from version_file import VERSION
_issue_url = "https://gitlab.nps.edu/monterey-phoenix" \
"/user-interfaces/gryphon/-/issues"
_issue_link = "<a href='%s'>%s</a>"%(_issue_url, _issue_url)
_text = 'To report an issue please open the Monterey Phoenix Gryphon ' \
'issue tracker at %s and click the "New issue" button.<p>' \
'Please include the version of the Operating System you are ' \
'using and that you are using Gryphon %s. ' \
'If possible, please include a screen capture.<p>' \
'Please de-identify screen capture and other ' \
'submitted information as issues and related comments are ' \
'public.'%(_issue_link, VERSION)
def report_an_issue(parent):
mb = QMessageBox(parent)
mb.setTextFormat(Qt.RichText)
mb.setText(_text)
mb.setStandardButtons(QMessageBox.Ok)
mb.exec()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment