mirror of
https://github.com/readest/readest.git
synced 2026-04-29 03:50:52 +00:00
feat: select directory to save last book cover image (#2521)
This commit is contained in:
parent
c792c18e01
commit
8f22a5c570
44 changed files with 306 additions and 39 deletions
|
|
@ -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>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue