From 60dddf0d03dc42502896b029add51ca5c565da89 Mon Sep 17 00:00:00 2001 From: Bastien Dejean Date: Mon, 27 Nov 2023 11:54:53 +0100 Subject: [PATCH] Add *txt* to the list of allowed kinds --- contrib/Settings-sample.toml | 2 +- crates/core/src/settings/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/Settings-sample.toml b/contrib/Settings-sample.toml index 5e36532..c553620 100644 --- a/contrib/Settings-sample.toml +++ b/contrib/Settings-sample.toml @@ -164,7 +164,7 @@ sync-metadata = true metadata-kinds = ["epub", "pdf", "djvu"] # The file extensions of the documents that will be considered during the # import process. -allowed-kinds = ["djvu", "xps", "fb2", "pdf", "oxps", "cbz", "epub"] +allowed-kinds = ["djvu", "xps", "fb2", "txt", "pdf", "oxps", "cbz", "epub"] [dictionary] # The default font size and margin width, for the Dictionary application. diff --git a/crates/core/src/settings/mod.rs b/crates/core/src/settings/mod.rs index 5f16f85..3648f19 100644 --- a/crates/core/src/settings/mod.rs +++ b/crates/core/src/settings/mod.rs @@ -474,7 +474,7 @@ impl Default for ImportSettings { startup_trigger: true, sync_metadata: true, metadata_kinds: ["epub", "pdf", "djvu"].iter().map(|k| k.to_string()).collect(), - allowed_kinds: ["pdf", "djvu", "epub", "fb2", + allowed_kinds: ["pdf", "djvu", "epub", "fb2", "txt", "xps", "oxps", "mobi", "cbz"].iter().map(|k| k.to_string()).collect(), } } -- 2.51.2