Commit fab94a3
fix(import): route a double-clicked .aeroftp export to the import flow
Only .aerovault and .aeroftp-keystore were forwarded from the
single-instance and macOS first-launch argv handlers. A plain .aeroftp
server-profiles export was a registered file association, so it opened
the app, but no event was emitted and importAeroFtpProfileFile() was
never called: the file dead-ended on a bare window (issue #214 pt.4a,
plain .aeroftp).
Emit servers-open-file from both handlers and add a frontend listener
that drives the existing password-prompt import flow. ends_with(".aeroftp")
does not match ".aeroftp-keystore", and the listener additionally guards
!endsWith('.aeroftp-keystore'), so keystore files never reach the
profiles importer.
refs #214
Co-Authored-By: aeroftp[bot] <aeroftp[bot]@users.noreply.github.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 40388f0 commit fab94a3
2 files changed
Lines changed: 49 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13863 | 13863 | | |
13864 | 13864 | | |
13865 | 13865 | | |
| 13866 | + | |
| 13867 | + | |
| 13868 | + | |
| 13869 | + | |
| 13870 | + | |
| 13871 | + | |
| 13872 | + | |
| 13873 | + | |
| 13874 | + | |
| 13875 | + | |
| 13876 | + | |
| 13877 | + | |
| 13878 | + | |
| 13879 | + | |
| 13880 | + | |
| 13881 | + | |
| 13882 | + | |
| 13883 | + | |
13866 | 13884 | | |
13867 | 13885 | | |
13868 | 13886 | | |
| |||
14516 | 14534 | | |
14517 | 14535 | | |
14518 | 14536 | | |
| 14537 | + | |
| 14538 | + | |
| 14539 | + | |
| 14540 | + | |
| 14541 | + | |
| 14542 | + | |
| 14543 | + | |
| 14544 | + | |
| 14545 | + | |
| 14546 | + | |
| 14547 | + | |
| 14548 | + | |
| 14549 | + | |
| 14550 | + | |
| 14551 | + | |
| 14552 | + | |
| 14553 | + | |
| 14554 | + | |
| 14555 | + | |
14519 | 14556 | | |
14520 | 14557 | | |
14521 | 14558 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3212 | 3212 | | |
3213 | 3213 | | |
3214 | 3214 | | |
| 3215 | + | |
| 3216 | + | |
| 3217 | + | |
| 3218 | + | |
| 3219 | + | |
| 3220 | + | |
| 3221 | + | |
| 3222 | + | |
| 3223 | + | |
| 3224 | + | |
| 3225 | + | |
| 3226 | + | |
3215 | 3227 | | |
3216 | 3228 | | |
3217 | 3229 | | |
| |||
0 commit comments