Skip to content

fix: pass parent window to folder picker dialog#5

Merged
dortort merged 1 commit intomainfrom
fix/dialog-parent-window
Feb 5, 2026
Merged

fix: pass parent window to folder picker dialog#5
dortort merged 1 commit intomainfrom
fix/dialog-parent-window

Conversation

@dortort
Copy link
Owner

@dortort dortort commented Feb 5, 2026

Summary

  • Passes the parent BrowserWindow to dialog.showOpenDialog so the native folder picker appears attached to the app window
  • Without this, the dialog could open behind the window or fail to show

Test plan

  • "Browse..." button in New Project dialog opens the native folder picker in front of the app

🤖 Generated with Claude Code

Without a parent BrowserWindow reference, the native folder picker
could open behind the app window or fail to appear. Use
BrowserWindow.fromWebContents(event.sender) to attach it correctly.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@dortort dortort merged commit 0e30346 into main Feb 5, 2026
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