Commit ae0d45c
committed
Roll back persisted WSL config when start fails
Capture the previous on-disk WSL config before persisting the new one,
and restore it if startBackend fails. Otherwise the renderer error toast
leaves the UI showing the old toggle/distro while the disk has already
moved to the never-confirmed configuration, which the next app launch
silently honors.1 parent 7a35f0d commit ae0d45c
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1983 | 1983 | | |
1984 | 1984 | | |
1985 | 1985 | | |
| 1986 | + | |
1986 | 1987 | | |
1987 | 1988 | | |
1988 | 1989 | | |
1989 | 1990 | | |
| 1991 | + | |
| 1992 | + | |
| 1993 | + | |
| 1994 | + | |
| 1995 | + | |
| 1996 | + | |
1990 | 1997 | | |
1991 | 1998 | | |
1992 | 1999 | | |
| |||
0 commit comments