File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9542,6 +9542,12 @@ impl MainWindow {
95429542 }
95439543
95449544 fn finish_application_exit ( state : & Arc < Mutex < AppState > > , mut window : Window ) {
9545+ // FLTK's event loop returns only after every native top-level window is
9546+ // hidden. Establish that exit condition before any resource cleanup
9547+ // that could be delayed by a database driver or worker state.
9548+ window. hide ( ) ;
9549+ Self :: hide_all_visible_windows ( ) ;
9550+
95459551 crate :: db:: clear_tracked_db_activity ( ) ;
95469552 let ( popups, editor_tabs, mut result_tabs) = {
95479553 let s = state
@@ -9570,8 +9576,6 @@ impl MainWindow {
95709576 }
95719577 result_tabs. clear ( ) ;
95729578 crate :: ui:: sql_editor:: SqlEditorWidget :: shutdown_column_load_workers ( ) ;
9573- window. hide ( ) ;
9574- Self :: hide_all_visible_windows ( ) ;
95759579 app:: quit ( ) ;
95769580 }
95779581
You can’t perform that action at this time.
0 commit comments