diff --git a/frontend/ui/widget/filechooser.lua b/frontend/ui/widget/filechooser.lua index 9dbb164fb..31062c6a4 100644 --- a/frontend/ui/widget/filechooser.lua +++ b/frontend/ui/widget/filechooser.lua @@ -207,7 +207,7 @@ local FileChooser = Menu:extend{ end, }, percent_natural = { - -- sort 90% > 50% > 0% > unopened > 100% or finished + -- sort 90% > 50% > 0% or on hold > unopened > 100% or finished text = _("percent - unopened - finished last"), menu_order = 90, can_collate_mixed = false, @@ -235,9 +235,11 @@ local FileChooser = Menu:extend{ local doc_settings = DocSettings:open(item.path) local summary = doc_settings:readSetting("summary") - -- books marked as "finished" should be considered the same as 100% + -- books marked as "finished" or "on hold" should be considered the same as 100% and 0% respectively if summary and summary.status == "complete" then item.sort_percent = 1.0 + elseif summary and summary.status == "abandoned" then + item.sort_percent = 0 end percent_finished = doc_settings:readSetting("percent_finished")