Skip to content

Commit

Permalink
Fix tab stacking issue when loading datasets
Browse files Browse the repository at this point in the history
  • Loading branch information
ashmeigh committed Feb 21, 2025
1 parent e188402 commit f287f61
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions mantidimaging/gui/windows/main/presenter.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,14 +232,11 @@ def add_alternative_180_if_required(self, dataset: Dataset) -> None:
proj180deg = ImageStack(_180_arr, name=f"{dataset.name}_180")
self.add_images_to_existing_dataset(dataset.id, proj180deg, "proj_180")

def create_dataset_stack_visualisers(self, dataset: Dataset) -> StackVisualiserView:
def create_dataset_stack_visualisers(self, dataset: Dataset) -> None:
"""Creates StackVisualiserView widgets for a new dataset and tabifies them."""
first_stack_vis = self._create_lone_stack_window(dataset.all[0])
self._tabify_stack_window(first_stack_vis)
for stack in dataset.all:
self._create_and_tabify_stack_window(stack)
self._focus_on_newest_stack_tab()
return first_stack_vis

def _focus_on_newest_stack_tab(self) -> None:
"""
Expand Down

0 comments on commit f287f61

Please sign in to comment.