mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
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:
@@ -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