🚨 fix warn info when build

This commit is contained in:
BTMuli
2023-09-07 16:57:50 +08:00
parent 7e3843809f
commit 87c3c59c86

View File

@@ -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!())