Add standalone media and remote downloads
This commit is contained in:
parent
8a213462e0
commit
5f9b5d9796
14 changed files with 683 additions and 86 deletions
|
|
@ -7,7 +7,7 @@ use gtk::gio::prelude::*;
|
|||
use gtk::glib;
|
||||
use percent_encoding::percent_decode_str;
|
||||
|
||||
use crate::browser::{BrowserEntry, EntryKind, is_zip_path};
|
||||
use crate::browser::{BrowserEntry, EntryKind, classify_file};
|
||||
use crate::config::{LocationKind, LocationProfile};
|
||||
|
||||
const ATTRIBUTES: &str = "standard::display-name,standard::name,standard::type,standard::size,standard::target-uri,mountable::can-mount,time::modified,time::created,etag::value";
|
||||
|
|
@ -115,9 +115,7 @@ where
|
|||
let kind = match info.file_type() {
|
||||
gio::FileType::Directory => EntryKind::Directory,
|
||||
gio::FileType::Mountable | gio::FileType::Shortcut => EntryKind::Directory,
|
||||
gio::FileType::Regular if is_zip_path(Path::new(info.display_name().as_str())) => {
|
||||
EntryKind::ZipArchive
|
||||
}
|
||||
gio::FileType::Regular => classify_file(Path::new(info.display_name().as_str())),
|
||||
_ => continue,
|
||||
};
|
||||
let child = enumerator.child(&info);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue