mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-04 12:13:27 +00:00
Add functionality to some Overview Catrgories (#1090)
Co-authored-by: Brendan Allan <brendonovich@outlook.com>
This commit is contained in:
parent
07c00a8b7f
commit
c877c03b63
|
@ -51,6 +51,9 @@ impl Category {
|
|||
Category::Music => ObjectKind::Audio,
|
||||
Category::Books => ObjectKind::Book,
|
||||
Category::Encrypted => ObjectKind::Encrypted,
|
||||
Category::Databases => ObjectKind::Database,
|
||||
Category::Archives => ObjectKind::Archive,
|
||||
Category::Applications => ObjectKind::Executable,
|
||||
_ => unimplemented!("Category::to_object_kind() for {:?}", self),
|
||||
}
|
||||
}
|
||||
|
@ -63,6 +66,9 @@ impl Category {
|
|||
| Category::Videos
|
||||
| Category::Music
|
||||
| Category::Encrypted
|
||||
| Category::Databases
|
||||
| Category::Archives
|
||||
| Category::Applications
|
||||
| Category::Books => object::kind::equals(Some(self.to_object_kind() as i32)),
|
||||
_ => object::id::equals(-1),
|
||||
}
|
||||
|
|
|
@ -27,7 +27,7 @@ pub enum ObjectKind {
|
|||
Alias = 10,
|
||||
/// Raw bytes encrypted by Spacedrive with self contained metadata
|
||||
Encrypted = 11,
|
||||
/// A link can open web pages, apps or Spaces
|
||||
/// A key or certificate file
|
||||
Key = 12,
|
||||
/// A link can open web pages, apps or Spaces
|
||||
Link = 13,
|
||||
|
|
Loading…
Reference in a new issue