Commit f689da0
committed
Bugfixes: Theme at startup, Linux dead-code, Svelte render lint
- `theme.mode` now applies at every window's startup via `settings-applier.ts`, not just when the Themes section happens to mount. Restarting with light mode persisted on a dark-mode system used to start dark and flip when settings opened. The applier subscribes to `theme.mode` changes too, so the Themes section is now a pure UI shell.
- Gate `restricted_paths::reprobe_all_async` to `#[cfg(target_os = "macos")]` — its only caller, the `NSApplicationDidBecomeActive` observer, is already macOS-only, so the function is dead code on Linux and `#![deny(unused)]` was failing the Linux build.
- Add the canonical `eslint-disable-next-line @typescript-eslint/no-confusing-void-expression` comment on the two `{@render scanPhaseBody()}` lines in `TransferProgressDialog.svelte`. Same pattern as `DualPaneExplorer.svelte` — local snippets confuse the type-aware rule where prop `Snippet` ones don't.
- Tiny cleanup: wrap the two `() => void handleCancel(false)` arrow shorthands in `TransferProgressDialog.svelte` with braces. Not what was failing lint, but the void-in-shorthand pattern is a known footgun and the braces are clearer.1 parent be2333c commit f689da0
4 files changed
Lines changed: 51 additions & 40 deletions
File tree
- apps/desktop
- src-tauri/src/restricted_paths
- src/lib
- file-operations/transfer
- settings
- sections
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
112 | 119 | | |
113 | 120 | | |
114 | 121 | | |
| |||
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
855 | 855 | | |
856 | 856 | | |
857 | 857 | | |
858 | | - | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
859 | 861 | | |
860 | 862 | | |
861 | 863 | | |
| |||
877 | 879 | | |
878 | 880 | | |
879 | 881 | | |
| 882 | + | |
880 | 883 | | |
881 | 884 | | |
882 | 885 | | |
883 | 886 | | |
884 | | - | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
885 | 893 | | |
886 | 894 | | |
887 | 895 | | |
| |||
1027 | 1035 | | |
1028 | 1036 | | |
1029 | 1037 | | |
1030 | | - | |
| 1038 | + | |
| 1039 | + | |
1031 | 1040 | | |
1032 | 1041 | | |
1033 | 1042 | | |
| |||
Lines changed: 5 additions & 37 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
6 | | - | |
| 5 | + | |
7 | 6 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | 7 | | |
12 | 8 | | |
13 | 9 | | |
| |||
19 | 15 | | |
20 | 16 | | |
21 | 17 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
54 | 22 | | |
55 | 23 | | |
56 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
98 | 99 | | |
99 | 100 | | |
100 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
101 | 120 | | |
102 | 121 | | |
103 | 122 | | |
| |||
112 | 131 | | |
113 | 132 | | |
114 | 133 | | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
115 | 138 | | |
116 | 139 | | |
117 | 140 | | |
| |||
162 | 185 | | |
163 | 186 | | |
164 | 187 | | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
165 | 192 | | |
166 | 193 | | |
167 | 194 | | |
| |||
0 commit comments