File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed
mantidimaging/gui/windows/main Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -837,21 +837,13 @@ def reset_layout(self):
837
837
# Get all stacks
838
838
stacks = self .get_all_stacks ()
839
839
if not stacks :
840
- QMessageBox .critical (
841
- self ,
842
- "Error" ,
843
- "No stacks detected."
844
- )
840
+ QMessageBox .critical (self , "Error" , "No stacks detected." )
845
841
return
846
842
847
843
# Recreate all stacks
848
844
for stack in stacks :
849
845
self .create_new_stack (stack )
850
846
851
847
except (AttributeError , RuntimeError , TypeError ) as unexpected_error :
852
- QMessageBox .critical (
853
- self ,
854
- "Error" ,
855
- f"Reset Layout could not completely reset the stacks.\n \n Details: { unexpected_error } "
856
- )
857
-
848
+ QMessageBox .critical (self , "Error" ,
849
+ f"Reset Layout could not completely reset the stacks.\n \n Details: { unexpected_error } " )
You can’t perform that action at this time.
0 commit comments