File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -603,7 +603,6 @@ def start_transcription(
603603 output_format : str ,
604604 dialog : ui .dialog ,
605605) -> None :
606- # Get selected values
607606 selected_language = language
608607 selected_model = model
609608 error = ""
@@ -636,15 +635,20 @@ def start_transcription(
636635 error = "Error: Failed to start transcription."
637636
638637 if error :
639- with ui .dialog () as error_dialog :
638+ with dialog :
639+ dialog .clear ()
640+
640641 with ui .card ().style (
641642 "background-color: white; align-self: center; border: 0; width: 50%;"
642643 ):
643644 ui .label (error ).classes ("text-h6 q-mb-md text-black" )
644645 ui .button (
645646 "Close" ,
646- ).on (
647- "click" , lambda : error_dialog .close ()
648- ).classes ("button-close" ).props ("color=black flat" )
649- error_dialog .open ()
647+ ).on ("click" , lambda : dialog .close ()).classes (
648+ "button-close"
649+ ).props ("color=black flat" )
650+ dialog .open ()
651+ else :
652+ dialog .close ()
653+
650654 return
You can’t perform that action at this time.
0 commit comments