From 301a34dd596b9c906a3750f0d056530079025dd7 Mon Sep 17 00:00:00 2001 From: farfromrefug Date: Sat, 12 Oct 2024 21:49:23 +0200 Subject: [PATCH] fix: allow jpegQuality == 0 #310 --- app/components/settings/Settings.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/components/settings/Settings.svelte b/app/components/settings/Settings.svelte index 28917f24..37498175 100644 --- a/app/components/settings/Settings.svelte +++ b/app/components/settings/Settings.svelte @@ -280,7 +280,7 @@ type: 'rightIcon', key: 'pdf_export_directory', title: lc('export_folder'), - defaultValue: DEFAULT_EXPORT_DIRECTORY, + defaultValue: DEFAULT_EXPORT_DIRECTORY || lc('please_choose_export_folder'), description: (item) => ApplicationSettings.getString(item.key, item.defaultValue), rightBtnIcon: 'mdi-restore', onTap: async (item) => { @@ -374,7 +374,7 @@ storeKey: 'default_export_options', storeDefault: DEFAULT_PDF_OPTIONS_STRING, key: 'jpegQuality', - min: 1, + min: 0, max: 100, step: 1, formatter: (value) => value.toFixed(),