Commit 42db2b1
authored
fix: sometimes no staged/unstaged changes were shown (#2030)
Due to a race condition it was possible, that there were changes (the
badge for LOCAL CHANGES showed a non-zero number), but there were no
staged or unstaged files shown.
The problem was, that while loading the changes for the first time, the
watcher could start the loading a second time. The first loading was
cancelled, but it could have already set the first instance variable.
Therefore, on the second load a shortcut was done, since there was
seemingly no change.1 parent 4e69208 commit 42db2b1
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
274 | | - | |
275 | | - | |
276 | 274 | | |
277 | 275 | | |
278 | 276 | | |
| |||
321 | 319 | | |
322 | 320 | | |
323 | 321 | | |
| 322 | + | |
324 | 323 | | |
325 | 324 | | |
326 | 325 | | |
| |||
0 commit comments