debug(windows): opt-in devtools for the dock window via CODEBURN_DOCK_DEVTOOLS

This commit is contained in:
iamtoruk 2026-09-01 14:29:13 -07:00
parent db4f282209
commit c535a97873

View file

@ -105,7 +105,12 @@ pub fn show(app: &AppHandle) -> tauri::Result<()> {
apply_layout(&window, 1, false);
window.show()?;
#[cfg(debug_assertions)]
eprintln!("codeburn dock: window created and shown");
{
eprintln!("codeburn dock: window created and shown");
if std::env::var_os("CODEBURN_DOCK_DEVTOOLS").is_some() {
window.open_devtools();
}
}
Ok(())
}