Skip to content

Commit 1be144f

Browse files
committed
시그니처 기능 개선
1 parent 425bfcc commit 1be144f

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/ui/main_window.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)