bookstatus(minor): read setting only once

pull/2573/head^2
Qingping Hou 7 years ago committed by Frans de Jonge
parent 0566df5f28
commit 4fce69d18d

@ -61,16 +61,12 @@ function BookStatusWidget:init()
} }
self:getStatisticsSettings() self:getStatisticsSettings()
if self.settings then if self.settings then
if self.settings:readSetting("summary") ~= nil then self.summary = self.settings:readSetting("summary") or {
self.summary = self.settings:readSetting("summary") rating = nil,
else note = nil,
self.summary = { status = "",
rating = nil, modified = "",
note = nil, }
status = "",
modified = "",
}
end
end end
self.small_font_face = Font:getFace("ffont", 15) self.small_font_face = Font:getFace("ffont", 15)

Loading…
Cancel
Save