Skip to content

fix: prevent welcome window freeze when opening database files from Finder#455

Merged
datlechin merged 4 commits intomainfrom
fix/file-open-welcome-window-freeze
Mar 25, 2026
Merged

fix: prevent welcome window freeze when opening database files from Finder#455
datlechin merged 4 commits intomainfrom
fix/file-open-welcome-window-freeze

Conversation

@datlechin
Copy link
Collaborator

Summary

  • Fix welcome window suppression timer giving up after 700ms — now polls up to ~15s, covering slow-connecting databases like DuckDB
  • Fix windowDidBecomeKey closing welcome window when no main window exists yet (leaving app with no visible windows) — now hides instead of closing
  • Always render NavigationSplitView in ContentView so the toolbar persists through the connecting→connected state transition (fixes missing toolbar when opening .sqlite from Finder)

Test plan

  • 20 regression tests in WelcomeWindowSuppressionTests (window identification, suppression state, hide-vs-close behavior)
  • Double-click .sqlite file from Finder — toolbar should appear correctly
  • Double-click .duckdb file from Finder — should connect without welcome window freezing
  • Open connection from within the app — no regression in normal flow

@datlechin datlechin merged commit 97912e4 into main Mar 25, 2026
2 checks passed
@datlechin datlechin deleted the fix/file-open-welcome-window-freeze branch March 26, 2026 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant