Commit 924085e
refactor: inline syncSubPreferences into master change handler
The syncSubPreferences helper was only invoked from the master
checkbox's change handler (disable branch) and never on init, where
initial visibility is already set server-side via Jinja. Inlining it
removes the indirection and the asymmetry between the enable and
disable paths while preserving behavior: enabling reveals the
sub-preferences and checks updates; disabling hides them and clears
both sub-preferences.
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent 0acd381 commit 924085e
1 file changed
Lines changed: 2 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | 66 | | |
75 | 67 | | |
76 | 68 | | |
| |||
0 commit comments