From 87c3c59c8672440b51032863a431c7850fd98c3e Mon Sep 17 00:00:00 2001 From: BTMuli Date: Thu, 7 Sep 2023 16:57:50 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20fix=20warn=20info=20when=20build?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src-tauri/src/main.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index b2f38c27..2e4529a4 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -7,11 +7,9 @@ fn main() { tauri::Builder::default() .plugin(tauri_plugin_sql::Builder::default().build()) .setup(|_app| { + let _window = _app.get_window("tauri-genshin").unwrap(); #[cfg(debug_assertions)] // only include this code on debug builds - { - let window = _app.get_window("tauri-genshin").unwrap(); - window.open_devtools(); // open the devtools on startup - } + _window.open_devtools(); // open the devtools on startup Ok(()) }) .run(tauri::generate_context!())