diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index a6cc1202..1f586d83 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -3621,6 +3621,14 @@ pub fn run() { } } + #[cfg(debug_assertions)] + { + use tauri::Manager; + if let Some(win) = app.get_webview_window("main") { + win.open_devtools(); + } + } + // ── System tray ─────────────────────────────────────────────── // Always build on startup when possible; the frontend calls toggle_tray_icon(false) // immediately after load if the user has disabled the tray icon. diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 9aa7653f..94dd3472 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -23,8 +23,7 @@ "decorations": true, "transparent": false, "visible": true, - "dragDropEnabled": false, - "devtools": false + "dragDropEnabled": false } ], "security": {