From c877c03b63da8542bbb115e031d0c7bcef7e6c8b Mon Sep 17 00:00:00 2001 From: Niklas Wojtkowiak <57798165+Nim1com@users.noreply.github.com> Date: Wed, 12 Jul 2023 09:01:30 +0300 Subject: [PATCH] Add functionality to some Overview Catrgories (#1090) Co-authored-by: Brendan Allan --- core/src/library/cat.rs | 6 ++++++ crates/file-ext/src/kind.rs | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/core/src/library/cat.rs b/core/src/library/cat.rs index 88ec0ddb1..84df22e21 100644 --- a/core/src/library/cat.rs +++ b/core/src/library/cat.rs @@ -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), } diff --git a/crates/file-ext/src/kind.rs b/crates/file-ext/src/kind.rs index a2a2e5a6d..86f6e84d8 100644 --- a/crates/file-ext/src/kind.rs +++ b/crates/file-ext/src/kind.rs @@ -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,