mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-10 08:58:15 +08:00
🚨 fix warn info when build
This commit is contained in:
@@ -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!())
|
||||
|
||||
Reference in New Issue
Block a user