tauri-sys/examples/test/src/window.rs
2022-11-03 18:52:21 +01:00

13 lines
No EOL
275 B
Rust

use anyhow::ensure;
use tauri_sys::window;
pub async fn create_window() -> anyhow::Result<()> {
let win = window::WebviewWindow::new("foo", ());
ensure!(win.is_visible().await);
// ensure!(win.label() == "foo".to_string());
win.close().await;
Ok(())
}