Commit bea6f20
committed
fix: skip updates when state is disabled
## Details
Issue: #208
When state is disabled the update logic is still triggered. For the most
part this doesn't really do anything as it triggers the non rendered
view. However it does hijack the window options and prevents users from
changing them by constantly changing them back.
To fix this gate the event based callbacks on state being enabled. The
only case where state is disabled in the UI is from user commands.1 parent 2f36ac1 commit bea6f20
2 files changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
28 | 31 | | |
29 | 32 | | |
30 | 33 | | |
| |||
65 | 68 | | |
66 | 69 | | |
67 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
68 | 74 | | |
69 | 75 | | |
70 | 76 | | |
| |||
0 commit comments