Support drag and drop to gvfs drives, fixes #1140
This commit is contained in:
parent
be67fd8e0d
commit
a6f0d898ce
1 changed files with 3 additions and 1 deletions
|
|
@ -3853,7 +3853,9 @@ impl Tab {
|
||||||
Message::Drop(Some((to, mut from))) => {
|
Message::Drop(Some((to, mut from))) => {
|
||||||
self.dnd_hovered = None;
|
self.dnd_hovered = None;
|
||||||
match to {
|
match to {
|
||||||
Location::Desktop(to, ..) | Location::Path(to) => {
|
Location::Desktop(to, ..)
|
||||||
|
| Location::Path(to)
|
||||||
|
| Location::Network(_, _, Some(to)) => {
|
||||||
if let Ok(entries) = fs::read_dir(&to) {
|
if let Ok(entries) = fs::read_dir(&to) {
|
||||||
for i in entries.into_iter().filter_map(|e| e.ok()) {
|
for i in entries.into_iter().filter_map(|e| e.ok()) {
|
||||||
let i = i.path();
|
let i = i.path();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue