feat(window-state): support using a custom filename (#1138)

* feat(window-state): support using a custom filename

ref: https://github.com/tauri-apps/plugins-workspace/pull/1079

* generate api

* fmt
This commit is contained in:
Amr Bashir
2024-04-03 21:29:48 +02:00
committed by GitHub
parent f9bcc1c21d
commit 0e9541fe89
6 changed files with 53 additions and 6 deletions
+5
View File
@@ -32,3 +32,8 @@ pub async fn restore_state<R: Runtime>(
.map_err(|e| e.to_string())?;
Ok(())
}
#[command]
pub fn filename<R: Runtime>(app: AppHandle<R>) -> String {
app.filename()
}