Merge pull request #307 from Psychotoxical/chore/devtools-dev-only

chore(tauri): enable devtools in dev builds only
This commit is contained in:
Frank Stellmacher
2026-04-25 20:22:29 +02:00
committed by GitHub
2 changed files with 9 additions and 2 deletions
+8
View File
@@ -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 ─────────────────────────────────────────────── // ── System tray ───────────────────────────────────────────────
// Always build on startup when possible; the frontend calls toggle_tray_icon(false) // Always build on startup when possible; the frontend calls toggle_tray_icon(false)
// immediately after load if the user has disabled the tray icon. // immediately after load if the user has disabled the tray icon.
+1 -2
View File
@@ -23,8 +23,7 @@
"decorations": true, "decorations": true,
"transparent": false, "transparent": false,
"visible": true, "visible": true,
"dragDropEnabled": false, "dragDropEnabled": false
"devtools": false
} }
], ],
"security": { "security": {