mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-07-12 16:36:33 +02:00
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:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user