feat: select directory to save last book cover image (#2521)

This commit is contained in:
Huang Xin 2025-11-24 00:00:49 +08:00 committed by GitHub
parent c792c18e01
commit 8f22a5c570
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
44 changed files with 306 additions and 39 deletions

View file

@ -157,6 +157,13 @@ pub(crate) async fn open_external_url<R: Runtime>(
app.native_bridge().open_external_url(payload)
}
#[command]
pub(crate) async fn select_directory<R: Runtime>(
app: AppHandle<R>,
) -> Result<SelectDirectoryResponse> {
app.native_bridge().select_directory()
}
#[command]
pub(crate) async fn request_manage_storage_permission<R: Runtime>(
app: AppHandle<R>,