fix example

This commit is contained in:
Jonas Kruckenberg 2022-11-14 10:44:28 +01:00
parent 52acfb3b3d
commit 6441a58a05
17 changed files with 190 additions and 81 deletions

View file

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