Skip to content

Commit 0bc7137

Browse files
committed
fix: add block_quic to UI form (E0063 in 4 of 10 builds)
v1.7.5's block_quic config field broke the UI binary build because src/bin/ui.rs constructs Config{} explicitly and I forgot to add the new field there. CLI binary loads from JSON via serde so it didn't trip — only the 4 UI-building targets failed (linux-amd64-gnu, windows-amd64, macos-amd64, macos-arm64). block_quic is round-tripped through the form (config-only for now, no UI control) so save doesn't drop a user-set true.
1 parent 44854fa commit 0bc7137

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/bin/ui.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,10 @@ struct FormState {
239239
normalize_x_graphql: bool,
240240
youtube_via_relay: bool,
241241
passthrough_hosts: Vec<String>,
242+
/// Round-tripped from config.json so the UI's save path doesn't
243+
/// drop the user's setting. Not currently exposed as a UI control;
244+
/// users edit `block_quic` directly in `config.json` (Issue #213).
245+
block_quic: bool,
242246
}
243247

244248
#[derive(Clone, Debug)]
@@ -321,6 +325,7 @@ fn load_form() -> (FormState, Option<String>) {
321325
normalize_x_graphql: c.normalize_x_graphql,
322326
youtube_via_relay: c.youtube_via_relay,
323327
passthrough_hosts: c.passthrough_hosts.clone(),
328+
block_quic: c.block_quic,
324329
}
325330
} else {
326331
FormState {
@@ -348,6 +353,7 @@ fn load_form() -> (FormState, Option<String>) {
348353
normalize_x_graphql: false,
349354
youtube_via_relay: false,
350355
passthrough_hosts: Vec::new(),
356+
block_quic: false,
351357
}
352358
};
353359
(form, load_err)
@@ -490,6 +496,10 @@ impl FormState {
490496
// Similarly config-only for now; round-trips through the
491497
// file so the UI doesn't drop the user's entries on save.
492498
passthrough_hosts: self.passthrough_hosts.clone(),
499+
// Issue #213: block_quic is config-only for now (no UI
500+
// control yet). Round-trip through the file so save
501+
// doesn't drop a user-set true.
502+
block_quic: self.block_quic,
493503
})
494504
}
495505
}

0 commit comments

Comments
 (0)