Commit 515d2fa
committed
fix: bring window to front when opening file via Finder on macOS
The `open-file` event handler sent file data to the renderer via IPC
but never called focus()/show()/restore() on the window. This caused
double-clicking a .md file in Finder to load the file content silently
without bringing the app window to the foreground.
Fixed by adding window activation calls in sendFileToRenderer's sendFile
closure, aligning with the existing second-instance handler behavior.1 parent 7d083a6 commit 515d2fa
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
175 | 178 | | |
176 | 179 | | |
177 | 180 | | |
| |||
0 commit comments