Skip to content

Commit

Permalink
ruff fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeSullivan7 committed Jan 24, 2025
1 parent de1bc72 commit 46fcad0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mantidimaging/gui/windows/main/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -653,8 +653,8 @@ def _open_tree_menu(self, position: QPoint) -> None:
self.menuTreeView = QMenu()

if self.dataset_tree_widget.itemAt(position) is not None:
if (self.dataset_tree_widget.itemAt(position).id in self.presenter.all_stack_ids or
self.dataset_tree_widget.itemAt(position).id in self.presenter.all_dataset_ids):
if (self.dataset_tree_widget.itemAt(position).id in self.presenter.all_stack_ids
or self.dataset_tree_widget.itemAt(position).id in self.presenter.all_dataset_ids):
add_action = self.menuTreeView.addAction("Add / Replace Stack")
add_action.triggered.connect(self._add_images_to_existing_dataset)
delete_action = self.menuTreeView.addAction("Delete")
Expand Down

0 comments on commit 46fcad0

Please sign in to comment.