From 9dbc015fc0cb1048c3d1b5655178f77a4d4de974 Mon Sep 17 00:00:00 2001 From: Ross Whitfield Date: Mon, 17 Apr 2023 13:48:40 -0400 Subject: [PATCH] Disable generate tab for first release --- environment.yml | 2 +- src/shiver/presenters/histogram.py | 2 +- src/shiver/views/mainwindow.py | 3 +++ src/shiver/views/sample.py | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/environment.yml b/environment.yml index 548d2770..39277e5e 100644 --- a/environment.yml +++ b/environment.yml @@ -1,7 +1,7 @@ name: shiver channels: - conda-forge - - mantid + - mantid/label/nightly dependencies: - mantidworkbench - pre-commit diff --git a/src/shiver/presenters/histogram.py b/src/shiver/presenters/histogram.py index 1bcf5617..158d38c7 100644 --- a/src/shiver/presenters/histogram.py +++ b/src/shiver/presenters/histogram.py @@ -130,7 +130,7 @@ def create_corrections_tab(self, name): # inline functions def _help(): """Show the help for the corrections tab""" - webbrowser.open("https://neutrons.github.io/Shiver/") + webbrowser.open("https://neutrons.github.io/Shiver/GUI") def _apply(): """Apply the corrections""" diff --git a/src/shiver/views/mainwindow.py b/src/shiver/views/mainwindow.py index 843a5809..644b9dfe 100644 --- a/src/shiver/views/mainwindow.py +++ b/src/shiver/views/mainwindow.py @@ -30,6 +30,9 @@ def __init__(self, parent=None): GeneratePresenter(generate, generate_model) tabs.addTab(generate, "Generate") + # Disable unfinished tab for first release + tabs.setTabVisible(1, False) + layout = QVBoxLayout() layout.addWidget(tabs) layout.addWidget(AlgorithmProgressWidget(self)) diff --git a/src/shiver/views/sample.py b/src/shiver/views/sample.py index 7523a945..772a8e09 100644 --- a/src/shiver/views/sample.py +++ b/src/shiver/views/sample.py @@ -358,7 +358,7 @@ def btn_cancel_action(self): def btn_help_action(self): """Show the help for the sample dialog""" - webbrowser.open("https://neutrons.github.io/Shiver/") + webbrowser.open("https://neutrons.github.io/Shiver/GUI") def matrix_update_all_background_color(self, color): """Update the background color of all ub matrix cells"""