@setoelkahfi / svara / commits / 8819007

show debug

Seto Elkahfi committed Apr 7, 2025 at 22:19 UTC 8819007c78fa4827b037ad69ac16bd9b6f065f7d
1 file changed +5
src-tauri/src/main.rs
+5
@@ -448,6 +448,11 @@ fn main() {
448 .setup(|app| {
449 configure_log_path(app);
450 load_settings(app);
451 + #[cfg(debug_assertions)] // only include this code on debug builds
452 + {
453 + let window = app.get_window("main").unwrap();
454 + window.open_devtools();
455 + }
456 Ok(())
457 })
458 .run(tauri::generate_context!())