init
This commit is contained in:
commit
7a265704e8
56 changed files with 8200 additions and 0 deletions
19
src-tauri/src/main.rs
Normal file
19
src-tauri/src/main.rs
Normal file
|
@ -0,0 +1,19 @@
|
|||
// Prevents additional console window on Windows in release, DO NOT REMOVE!!
|
||||
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
|
||||
|
||||
use tauri::Manager;
|
||||
|
||||
fn main() {
|
||||
tauri::Builder::default()
|
||||
.invoke_handler(tauri::generate_handler![close_splashscreen])
|
||||
.run(tauri::generate_context!())
|
||||
.expect("error while running tauri application");
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
async fn close_splashscreen(window: tauri::Window) {
|
||||
if let Some(splashscreen) = window.get_window("splashscreen") {
|
||||
splashscreen.close().unwrap();
|
||||
}
|
||||
window.get_window("main").unwrap().show().unwrap();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue