File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 5555import numpy as np
5656from guidata .configtools import get_icon , get_image_file_path
5757from guidata .env import execenv
58- from guidata .qthelpers import exec_dialog , is_dark_mode
58+ from guidata .qthelpers import is_dark_mode
5959from qtpy import QtCore as QC
6060from qtpy import QtGui as QG
6161from qtpy import QtWidgets as QW
@@ -401,9 +401,14 @@ def show(self) -> StepResult:
401401 self .setup_callback (self .tour .win )
402402 self .update_cover (self .tour .cover )
403403 dialog = StepDialog (self .tour .win , self )
404- exec_dialog (dialog )
405- if execenv .unattended and self .step_type != "conclusion" :
404+ if not execenv .unattended :
405+ dialog .exec ()
406+ elif self .step_type != "conclusion" :
406407 dialog .result = StepResult .NEXT
408+ dialog .accept ()
409+ else :
410+ dialog .result = StepResult .CLOSE
411+ dialog .reject ()
407412 if self .teardown_callback is not None :
408413 self .teardown_callback (self .tour .win )
409414 return dialog .result
You can’t perform that action at this time.
0 commit comments