From feab232f35271b653778f06c80675ac527aff391 Mon Sep 17 00:00:00 2001 From: yparitcher Date: Sun, 3 Oct 2021 10:35:46 -0400 Subject: [PATCH] Kopt: keep 4 items per panel move newly enabled auto straighten from settings to crop --- frontend/ui/data/koptoptions.lua | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/frontend/ui/data/koptoptions.lua b/frontend/ui/data/koptoptions.lua index 2bc95694b..c3afd805d 100644 --- a/frontend/ui/data/koptoptions.lua +++ b/frontend/ui/data/koptoptions.lua @@ -110,6 +110,19 @@ In 'semi-auto' and 'manual' modes, you may need to define areas once on an odd p name_text_hold_callback = optionsutil.showValues, help_text = _([[Set margins to be applied after page-crop and zoom modes are applied.]]), }, + { + name = "auto_straighten", + name_text = _("Auto Straighten"), + toggle = {_("0°"), _("5°"), _("10°"), _("15°"), _("25°")}, + values = {0, 5, 10, 15, 25}, + event = "DummyEvent", + args = {0, 5, 10, 15, 25}, + more_options = true, + default_value = DKOPTREADER_CONFIG_AUTO_STRAIGHTEN, + name_text_hold_callback = optionsutil.showValues, + help_text = _([[Attempt to automatically straighten tilted source pages. +Will rotate up to specified value.]]), + }, } }, { @@ -566,19 +579,6 @@ This can also be used to remove some gray background or to convert a grayscale o end, name_text_hold_callback = optionsutil.showValues, }, - { - name = "auto_straighten", - name_text = _("Auto Straighten"), - toggle = {_("0°"), _("5°"), _("10°"), _("15°"), _("25°")}, - values = {0, 5, 10, 15, 25}, - event = "DummyEvent", - args = {0, 5, 10, 15, 25}, - more_options = true, - default_value = DKOPTREADER_CONFIG_AUTO_STRAIGHTEN, - name_text_hold_callback = optionsutil.showValues, - help_text = _([[Attempt to automatically straighten tilted source pages. -Will rotate up to specified value.]]), - }, { name = "detect_indent", name_text = _("Indentation"),