fix: build failed

pull/2548/head
nashaofu 1 day ago
parent 425aea08a7
commit 86253d1de4

@ -13,7 +13,7 @@ use rfd::{AsyncFileDialog, AsyncMessageDialog};
use serde::de::DeserializeOwned;
use tauri::{plugin::PluginApi, AppHandle, Runtime};
use crate::{models::*, FileDialogBuilder, FilePath, MessageDialogBuilder, OK};
use crate::{models::*, FileDialogBuilder, FilePath, MessageDialogBuilder, StopAccessingPath, OK};
pub fn init<R: Runtime, C: DeserializeOwned>(
app: &AppHandle<R>,
@ -207,6 +207,13 @@ pub fn save_file<R: Runtime, F: FnOnce(Option<FilePath>) + Send + 'static>(
});
}
pub fn stop_accessing_path<R: Runtime>(
_dialog: FileDialogBuilder<R>,
_p: StopAccessingPath,
) -> bool {
true
}
/// Shows a message dialog
pub fn show_message_dialog<R: Runtime, F: FnOnce(bool) + Send + 'static>(
dialog: MessageDialogBuilder<R>,

@ -114,7 +114,7 @@ pub fn stop_accessing_path<R: Runtime>(dialog: FileDialogBuilder<R>, p: StopAcce
.0
.run_mobile_plugin::<()>("stopAccessingPath", p);
if let Err(_) = res {
if res.is_err() {
return false;
}
}

Loading…
Cancel
Save