Commit d2a9dbe
committed
Fix status bar not updating when workspace first opens
Fixes #1729
The tabBarTabIdSubject was a PassthroughSubject, which doesn't replay
its current value to new subscribers. When the workspace opens, the
initial tab selection is sent before the status bar view subscribes,
so it never receives the initial value.
Changed to CurrentValueSubject so late subscribers (like the status
bar) immediately receive the current tab selection on subscription.1 parent 118afcd commit d2a9dbe
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
0 commit comments