Repository navigation
Commit 44d39ed
committed
fix(web): open folder hotkey starts at the configured add-project directory
The hotkey opened the native picker in the same tick that it started the
add-project browse, so isBrowsing was still false and fileManagerInitialPath
resolved to undefined. The picker opened wherever the OS last left it instead
of the environment's addProjectBaseDirectory.
Split the effect in two: start the browse and keep the open-folder intent, then
open the picker on the render after the browse view commits, when the resolved
directory is available. This also removes the in-flight browse commit that could
land after the palette closed.1 parent e8473d9 commit 44d39ed
1 file changed
Lines changed: 20 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2347 | 2347 | | |
2348 | 2348 | | |
2349 | 2349 | | |
2350 | | - | |
2351 | | - | |
2352 | | - | |
2353 | | - | |
| 2350 | + | |
| 2351 | + | |
| 2352 | + | |
| 2353 | + | |
| 2354 | + | |
| 2355 | + | |
| 2356 | + | |
2354 | 2357 | | |
2355 | 2358 | | |
| 2359 | + | |
2356 | 2360 | | |
2357 | 2361 | | |
2358 | | - | |
2359 | 2362 | | |
2360 | | - | |
2361 | | - | |
2362 | | - | |
| 2363 | + | |
| 2364 | + | |
| 2365 | + | |
2363 | 2366 | | |
2364 | | - | |
| 2367 | + | |
| 2368 | + | |
| 2369 | + | |
| 2370 | + | |
| 2371 | + | |
| 2372 | + | |
| 2373 | + | |
2365 | 2374 | | |
2366 | 2375 | | |
2367 | | - | |
2368 | 2376 | | |
2369 | 2377 | | |
2370 | | - | |
| 2378 | + | |
| 2379 | + | |
2371 | 2380 | | |
2372 | 2381 | | |
2373 | 2382 | | |
| |||
0 commit comments