Skip to content

Commit

The title bar and the app's own windows never have the web inspector: with Tauri's devtools feature built in, every web view not told otherwise gets one, so the Developer tools setting governed only the site's page while the title bar and the settings and Runner windows answered F12 and Inspect regardless.

syntaqxcommitted Parent844621cBrowse files
2 files+7−20/2 viewed
+3−1
8888 let top = if custom { HEIGHT } else { 0.0 };
8989 if custom {
9090 window.add_child(
91− WebviewBuilder::new(BAR, WebviewUrl::App("titlebar.html".into())).background_color(RAIL).on_navigation(config::is_launcher),
91+ // Never an inspector: the devtools feature gives every web view
92+ // one unless it is told otherwise (src/devtools.rs).
93+ WebviewBuilder::new(BAR, WebviewUrl::App("titlebar.html".into())).background_color(RAIL).on_navigation(config::is_launcher).devtools(false),
9294 LogicalPosition::new(0.0, 0.0),
9395 LogicalSize::new(size.width, HEIGHT),
9496 )?;
+4−1
352352
353353 fn build(app: &AppHandle, window: &Window) {
354354 let custom = crate::frame::started(app);
355+ // Never an inspector: the devtools feature gives every web view one
356+ // unless it is told otherwise (src/devtools.rs).
355357 let builder = WebviewWindowBuilder::new(app, window.label, WebviewUrl::App(window.page.into()))
356− .title(window.title);
358+ .title(window.title)
359+ .devtools(false);
357360 let built = crate::frame::dialog(builder, custom)
358361 .inner_size(window.size.0, window.size.1)
359362 .min_inner_size(440.0, 420.0)