feat (desktop): upgrade from wry 37 to 41 (#2618)
This commit is contained in:
1 parent
b4934ab974
commit
69d7098d0e
6 files changed
+69
-53
No files matched your search
@@ -19,7 +19,7 @@ use std::{
|
||||
str::FromStr,
|
||||
sync::Arc,
|
||||
};
|
||||
use wry::FileDropEvent;
|
||||
use wry::DragDropEvent;
|
||||
|
||||
#[derive(Debug, Deserialize)]
|
||||
pub(crate) struct FileDialogRequest {
|
||||
@@ -162,14 +162,14 @@ impl HasFormData for DesktopFileUploadForm {
|
||||
|
||||
#[derive(Default, Clone)]
|
||||
pub struct NativeFileHover {
|
||||
event: Rc<RefCell<Option<FileDropEvent>>>,
|
||||
event: Rc<RefCell<Option<DragDropEvent>>>,
|
||||
}
|
||||
impl NativeFileHover {
|
||||
pub fn set(&self, event: FileDropEvent) {
|
||||
pub fn set(&self, event: DragDropEvent) {
|
||||
self.event.borrow_mut().replace(event);
|
||||
}
|
||||
|
||||
pub fn current(&self) -> Option<FileDropEvent> {
|
||||
pub fn current(&self) -> Option<DragDropEvent> {
|
||||
self.event.borrow_mut().clone()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user