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,17 +61,13 @@ 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")
else
self.summary = {
rating = nil, rating = nil,
note = nil, note = nil,
status = "", status = "",
modified = "", modified = "",
} }
end end
end
self.small_font_face = Font:getFace("ffont", 15) self.small_font_face = Font:getFace("ffont", 15)
self.medium_font_face = Font:getFace("ffont", 20) self.medium_font_face = Font:getFace("ffont", 20)

Loading…
Cancel
Save