From 6fd26f629a487a1ed4e946f9331989eeeaf92600 Mon Sep 17 00:00:00 2001 From: Jonathan Haigh Date: Mon, 14 Oct 2024 14:39:43 +0100 Subject: [PATCH 1/2] Add mantid help email link to help menu --- qt/applications/workbench/workbench/app/mainwindow.py | 5 +++++ qt/applications/workbench/workbench/test/test_mainwindow.py | 1 + 2 files changed, 6 insertions(+) diff --git a/qt/applications/workbench/workbench/app/mainwindow.py b/qt/applications/workbench/workbench/app/mainwindow.py index dd70d4183989..a37a623cb320 100644 --- a/qt/applications/workbench/workbench/app/mainwindow.py +++ b/qt/applications/workbench/workbench/app/mainwindow.py @@ -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 mantid-help@mantidproject.org", on_triggered=self.mantidhelp_mailto) action_about = create_action(self, "About Mantid Workbench", on_triggered=self.open_about) self.help_menu_actions = [ @@ -327,6 +328,7 @@ def create_actions(self): None, action_mantid_homepage, action_mantid_forum, + action_support_email, None, action_about, ] @@ -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:mantid-help@mantidproject.org") + def open_about(self): about = AboutPresenter(self) about.show() diff --git a/qt/applications/workbench/workbench/test/test_mainwindow.py b/qt/applications/workbench/workbench/test/test_mainwindow.py index bf09f294bb9c..e0c95e7df6df 100644 --- a/qt/applications/workbench/workbench/test/test_mainwindow.py +++ b/qt/applications/workbench/workbench/test/test_mainwindow.py @@ -154,6 +154,7 @@ def convert_action_to_text(menu_item): None, "Mantid Homepage", "Mantid Forum", + "Email mantid-help@mantidproject.org", None, "About Mantid Workbench", ] From 3605ae1e0352d4fe2fdafce1c01802cb35d8bd77 Mon Sep 17 00:00:00 2001 From: Jonathan Haigh Date: Mon, 21 Oct 2024 14:52:12 +0100 Subject: [PATCH 2/2] added release note --- docs/source/release/v6.12.0/Workbench/New_features/38253.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 docs/source/release/v6.12.0/Workbench/New_features/38253.rst diff --git a/docs/source/release/v6.12.0/Workbench/New_features/38253.rst b/docs/source/release/v6.12.0/Workbench/New_features/38253.rst new file mode 100644 index 000000000000..a79782748bb1 --- /dev/null +++ b/docs/source/release/v6.12.0/Workbench/New_features/38253.rst @@ -0,0 +1 @@ +- Added a link to the mantid-help email to the Help menu. \ No newline at end of file