Commit 591e090
committed
Bugfix: Brief column-width slider doesn't enable in settings window
`ListingSection`'s `sliderDisabled` $derived was reading `getBriefColumnWidthMode()` from `reactive-settings.svelte.ts`. That module is initialised only in `(main)/+layout.svelte`, so the settings window's own JS context holds a stale default value — the cross-window settings sync updates the main window's `briefColumnWidthMode` (so the columns reflow) but the settings window's slider stays disabled.
Switched to the in-window subscription pattern other settings components already use: read the value via `getSetting()` on mount, then update a local `$state` via `onSpecificSettingChange`.1 parent e18bdbf commit 591e090
1 file changed
Lines changed: 12 additions & 3 deletions
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
31 | 40 | | |
32 | 41 | | |
33 | 42 | | |
| |||
0 commit comments