Updated drag drop paths to be PathBuf instead of String.
This commit is contained in:
parent
4698574b7d
commit
aa3a64af11
1 changed files with 3 additions and 3 deletions
|
@ -14,7 +14,7 @@ use futures::{
|
|||
Future, FutureExt, Stream, StreamExt,
|
||||
};
|
||||
use serde::{de::DeserializeOwned, Deserialize, Serialize};
|
||||
use std::{any::Any, collections::HashMap};
|
||||
use std::{any::Any, collections::HashMap, path::PathBuf};
|
||||
use wasm_bindgen::{prelude::Closure, JsValue};
|
||||
|
||||
/// Events that are emitted right here instead of by the created window.
|
||||
|
@ -105,12 +105,12 @@ pub enum DragDropEvent {
|
|||
|
||||
#[derive(Deserialize, Debug)]
|
||||
pub struct DragDropPayload {
|
||||
paths: Vec<String>,
|
||||
paths: Vec<PathBuf>,
|
||||
position: dpi::PhysicalPosition,
|
||||
}
|
||||
|
||||
impl DragDropPayload {
|
||||
pub fn paths(&self) -> &Vec<String> {
|
||||
pub fn paths(&self) -> &Vec<PathBuf> {
|
||||
&self.paths
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue