Skip to content

Commit

Permalink
chore: use acdc messagebox at the end of data struct
Browse files Browse the repository at this point in the history
  • Loading branch information
ElpadoCan committed Feb 14, 2025
1 parent 9675cc8 commit 99d66c3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
3 changes: 2 additions & 1 deletion cellacdc/_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1632,7 +1632,8 @@ def _showDataStructWin(self):

self.dataStructWin.show()
self.dataStructWin.main()
self.restoreDefaultButtons()
if self.dataStructWin.bioformats_backend != 'python-bioformats':
self.restoreDefaultButtons()
elif is_mac:
self.dataStructWin = (
dataStruct.InitFijiMacro(self)
Expand Down
24 changes: 14 additions & 10 deletions cellacdc/dataStruct.py
Original file line number Diff line number Diff line change
Expand Up @@ -1459,20 +1459,24 @@ def setPbarMax(self, max):

def taskEnded(self):
if self.worker.aborted and not self.worker.isCriticalError:
msg = QMessageBox(self)
abort = msg.critical(
self, 'Conversion task aborted.',
'Conversion task aborted.',
msg.Close
msg = widgets.myMessageBox(wrapText=False)
txt = html_utils.paragraph(
'Conversion task cancelled.'
)
msg.critical(
self, 'Conversion task cancelled.', txt
)
self.close()
elif not self.worker.aborted:
msg = QMessageBox(self)
msg = widgets.myMessageBox(wrapText=False)
txt = html_utils.paragraph(
'Conversion task ended.<br><br>'
'Files saved to'
)
abort = msg.information(
self, 'Conversion task ended.',
'Conversion task ended.\n\n'
f'Files saved to "{self.worker.exp_dst_path}"',
msg.Close
self, 'Conversion task ended.', txt,
commands=(self.worker.exp_dst_path,),
path_to_browse=self.worker.exp_dst_path
)
self.close()

Expand Down

0 comments on commit 99d66c3

Please sign in to comment.