Get everything ready
This commit is contained in:
13 files changed
+289
-129
No files matched your search
+11
-1
@@ -1,4 +1,4 @@
|
||||
use tauri::Manager;
|
||||
use tauri::{Manager, PhysicalSize};
|
||||
|
||||
#[cfg_attr(mobile, tauri::mobile_entry_point)]
|
||||
pub fn run() {
|
||||
@@ -10,6 +10,16 @@ pub fn run() {
|
||||
.set_focus();
|
||||
}))
|
||||
.invoke_handler(tauri::generate_handler![])
|
||||
.setup(|app| {
|
||||
let window = app.get_webview_window("main").unwrap();
|
||||
let mut url = window.url().unwrap();
|
||||
url.set_path("/projectmanager.html");
|
||||
window.navigate(url).unwrap();
|
||||
window.set_resizable(false).unwrap();
|
||||
window.set_size(PhysicalSize::new(800, 600)).unwrap();
|
||||
window.set_title("Project Manager").unwrap();
|
||||
Ok(())
|
||||
})
|
||||
.run(tauri::generate_context!())
|
||||
.expect("error while running tauri application");
|
||||
}
|
||||
Reference in new issue
Block a user