mirror of
https://github.com/spacebarchat/client.git
synced 2024-11-22 02:12:38 +01:00
Update lib.rs
This commit is contained in:
parent
a0cc376346
commit
a0408f12eb
@ -17,11 +17,7 @@ async fn close_splashscreen(window: tauri::Window) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Show main window
|
// Show main window
|
||||||
let main_window = window.get_window("main").unwrap();
|
window.get_window("main").unwrap().show().unwrap();
|
||||||
main_window.show().unwrap();
|
|
||||||
// Open the dev tools automatically when debugging the application
|
|
||||||
#[cfg(debug_assertions)]
|
|
||||||
main_window.open_devtools();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -77,6 +73,12 @@ pub fn run() {
|
|||||||
tray::create_tray(handle)?;
|
tray::create_tray(handle)?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Open the dev tools automatically when debugging the application
|
||||||
|
#[cfg(debug_assertions)]
|
||||||
|
if let Some(main_window) = app.get_window("main") {
|
||||||
|
main_window.open_devtools();
|
||||||
|
};
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
})
|
})
|
||||||
.on_window_event(|event| match event.event() {
|
.on_window_event(|event| match event.event() {
|
||||||
|
Loading…
Reference in New Issue
Block a user