Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mantid help email link to help menu #38253

Merged
merged 2 commits into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Added a link to the mantid-help email to the Help menu.
5 changes: 5 additions & 0 deletions qt/applications/workbench/workbench/app/mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ def create_actions(self):
action_mantid_concepts = create_action(self, "Mantid Concepts", on_triggered=self.open_mantid_concepts_help)
action_mantid_homepage = create_action(self, "Mantid Homepage", on_triggered=self.open_mantid_homepage)
action_mantid_forum = create_action(self, "Mantid Forum", on_triggered=self.open_mantid_forum)
action_support_email = create_action(self, "Email [email protected]", on_triggered=self.mantidhelp_mailto)
action_about = create_action(self, "About Mantid Workbench", on_triggered=self.open_about)

self.help_menu_actions = [
Expand All @@ -327,6 +328,7 @@ def create_actions(self):
None,
action_mantid_homepage,
action_mantid_forum,
action_support_email,
None,
action_about,
]
Expand Down Expand Up @@ -681,6 +683,9 @@ def open_mantid_homepage(self):
def open_mantid_forum(self):
self.interface_manager.showWebPage("https://forum.mantidproject.org/")

def mantidhelp_mailto(self):
self.interface_manager.showWebPage("mailto:[email protected]")

def open_about(self):
about = AboutPresenter(self)
about.show()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ def convert_action_to_text(menu_item):
None,
"Mantid Homepage",
"Mantid Forum",
"Email [email protected]",
None,
"About Mantid Workbench",
]
Expand Down
Loading