Remove unnecessary PerceptionExpander:onSaveSettings()

All the explicite self:saveSettings() needed are done when needed,
and this onSaveSettings() made the file being rewritten unchanged on
each suspend/exit, and created even if people have never used the
plugin.
This commit is contained in:
poire-z
2017-01-13 01:02:00 +01:00
committed by Qingping Hou
parent 5012fb79d3
commit fc8d26ad89

View File

@@ -189,11 +189,6 @@ function PerceptionExpander:addToMainMenu(tab_item_table)
})
end
-- in case when screensaver starts
function PerceptionExpander:onSaveSettings()
self:saveSettings()
end
function PerceptionExpander:onPageUpdate(pageno)
if not self.is_enabled then
return