Commit 8a65111
committed
fix(desktop): properly scope macOS conditional compilation
The previous fix incorrectly removed braces around the macOS-specific
window configuration, causing #[cfg(target_os = "macos")] to only
apply to the let binding. This would have caused the title bar style
and hidden title settings to be applied on all platforms.
This commit:
- Restores the braces to properly scope the conditional block
- Adds #[allow(unused_mut)] to suppress the warning since window_builder
is only mutated on macOS
Fixes review feedback on PR #77071 parent 2005b39 commit 8a65111
1 file changed
+7
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
305 | | - | |
| 305 | + | |
| 306 | + | |
306 | 307 | | |
307 | 308 | | |
308 | 309 | | |
| |||
318 | 319 | | |
319 | 320 | | |
320 | 321 | | |
321 | | - | |
322 | | - | |
323 | | - | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
324 | 327 | | |
325 | 328 | | |
326 | 329 | | |
| |||
0 commit comments