feat(positioner, window-state): impl WindowExt for WebviewWindow (#1283)

closes #1281
This commit is contained in:
Amr Bashir
2024-05-03 14:16:40 +03:00
committed by GitHub
parent b4efa58d5d
commit d9de5b19d1
5 changed files with 55 additions and 35 deletions
-2
View File
@@ -26,8 +26,6 @@ pub async fn restore_state<R: Runtime>(
.ok_or_else(|| format!("Invalid state flags bits: {}", flags))?;
app.get_webview_window(&label)
.ok_or_else(|| format!("Couldn't find window with label: {}", label))?
.as_ref()
.window()
.restore_state(flags)
.map_err(|e| e.to_string())?;
Ok(())