From 29ac5c67b7ca9d6735ae9b5a9fa0b3a59dfb42b5 Mon Sep 17 00:00:00 2001 From: Pierre Jacquier Date: Thu, 22 Feb 2024 07:26:09 -0500 Subject: [PATCH] Disable devtools --- src-tauri/src/main.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 5ba714ce2..527814b91 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -138,7 +138,6 @@ async fn login(app: tauri::AppHandle, host: &str) -> Result fs::write("/tmp/kittycad_user_code", details.user_code().secret()) .expect("Unable to write /tmp/kittycad_user_code file"); } else { - println!("{}", auth_uri.secret().to_string()); app.shell() .open(auth_uri.secret(), None) .map_err(|e| InvokeError::from_anyhow(e.into()))?; @@ -201,10 +200,10 @@ async fn get_user( fn main() { tauri::Builder::default() .setup(|_app| { - #[cfg(debug_assertions)] // only include this code on debug builds - { - _app.get_webview("main").unwrap().open_devtools(); - } + // #[cfg(debug_assertions)] // only include this code on debug builds + // { + // _app.get_webview("main").unwrap().open_devtools(); + // } _app.handle() .plugin(tauri_plugin_updater::Builder::new().build())?; Ok(())