FileChooser: "percent - unopened - finished last" fix possibly undefined setting

addressing code review
reviewable/pr11472/r2
hasezoey 4 months ago
parent 7c126c3eee
commit e998e6bb5b
No known key found for this signature in database
GPG Key ID: 9F8C99E834CC54FB

@ -237,7 +237,7 @@ local FileChooser = Menu:extend{
local summary = doc_settings:readSetting("summary")
-- books marked as "finished" should be considered the same as 100%
if summary.status == "complete" then
if summary and summary.status == "complete" then
item.percent_finished = 1.0
return
end

Loading…
Cancel
Save