Allow drop to Desktop, fixes #597

This commit is contained in:
Jeremy Soller 2025-01-19 10:54:30 -07:00
parent f8830814c1
commit 3460c2c106
No known key found for this signature in database
GPG key ID: D02FD439211AF56F

View file

@ -2895,7 +2895,7 @@ impl Tab {
Message::Drop(Some((to, mut from))) => {
self.dnd_hovered = None;
match to {
Location::Path(to) => {
Location::Desktop(to, ..) | Location::Path(to) => {
if let Ok(entries) = fs::read_dir(&to) {
for i in entries.into_iter().filter_map(|e| e.ok()) {
let i = i.path();