(&self, app: AppHandle)
| 253 | |
| 254 | #[tracing::instrument(level = "debug", skip(self))] |
| 255 | pub fn open_save_file(&self, app: AppHandle) -> Result<PathBuf> { |
| 256 | #[cfg(any(target_os = "android", target_os = "ios"))] |
| 257 | { |
| 258 | let res = app.dialog().file().blocking_save_file(); |
| 259 | if let Some(FilePath::Path(path)) = res { |
| 260 | return Ok(path.clone()); |
| 261 | } |
| 262 | } |
| 263 | Err("No file selected".into()) |
| 264 | } |
| 265 | } |
| 266 | |
| 267 | #[tracing::instrument(level = "debug", skip())] |
no test coverage detected