chore: refactor dnd offer mimes
This commit is contained in:
parent
1063256706
commit
f5384a32c0
3 changed files with 11 additions and 15 deletions
|
|
@ -78,7 +78,10 @@ fn main() {
|
|||
DndDestinationRectangle {
|
||||
id: 0,
|
||||
rectangle: Rectangle { x: 0., y: 0., width: 256., height: 256. },
|
||||
mime_types: ALLOWED_TEXT_MIME_TYPES.iter().map(|m| Cow::from(m.to_string())).collect(),
|
||||
mime_types: ALLOWED_TEXT_MIME_TYPES
|
||||
.iter()
|
||||
.map(|m| MimeType::from(Cow::from(m.to_string())))
|
||||
.collect(),
|
||||
actions: DndAction::all(),
|
||||
preferred: DndAction::Copy,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue