Commit f0ba5fc
Fix: show toast when project creation fails in desktop Electron mode
In desktop Electron mode, shouldBrowseForProjectImmediately is always true,
making shouldShowProjectPathEntry always false. The addProjectError message
was only rendered inside the shouldShowProjectPathEntry conditional block,
so errors from addProjectFromPath were stored in state but never displayed.
Use toastManager to show a visible error notification in the desktop path,
while preserving the existing inline error display for the non-desktop path.
Co-authored-by: Julius Marminge <[email protected]>1 parent 56023cc commit f0ba5fc
1 file changed
+18
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
531 | 531 | | |
532 | 532 | | |
533 | 533 | | |
| 534 | + | |
| 535 | + | |
534 | 536 | | |
535 | | - | |
536 | | - | |
537 | | - | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
538 | 546 | | |
539 | 547 | | |
540 | 548 | | |
541 | 549 | | |
542 | | - | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
543 | 557 | | |
544 | 558 | | |
545 | 559 | | |
| |||
0 commit comments