mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-25 16:28:12 +08:00
Add drag-and-drop support to the file picker dropdown widget (#4551)
Add drag-and-drop file ingest into file picker dropdowns
This commit is contained in:
@@ -597,7 +597,7 @@ mod editor_commands {
|
||||
ClipboardMessage::ReadSelection { content, cut }.into()
|
||||
}
|
||||
|
||||
/// A file picked in the dialog that `TriggerBrowse` opened
|
||||
/// A file headed for a known action, either picked in the dialog that `TriggerBrowse` opened or dropped onto a widget that takes files
|
||||
fn ingest_picked(name: String, mime_type: String, data: Vec<u8>, action: IngestAction) -> Message {
|
||||
IngestMessage::Ingest {
|
||||
data,
|
||||
|
||||
Reference in New Issue
Block a user