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:
1 parent
5012fb79d3
commit
fc8d26ad89
1 file changed
-5
@@ -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
|
||||
|
||||
Reference in new issue
Block a user