mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
handle obselete jumpstack settings
* remove jumpstack settings if found * add DocSettings:delSetting method * rename DocSettings:savesetting to DocSettings:savesetting.
This commit is contained in:
@@ -13,10 +13,14 @@ function DocSettings:readSetting(key)
|
||||
return self.data[key]
|
||||
end
|
||||
|
||||
function DocSettings:savesetting(key, value)
|
||||
function DocSettings:saveSetting(key, value)
|
||||
self.data[key] = value
|
||||
end
|
||||
|
||||
function DocSettings:delSetting(key)
|
||||
self.data[key] = nil
|
||||
end
|
||||
|
||||
function dump(data)
|
||||
local out = {}
|
||||
DocSettings:_serialize(data, out, 0)
|
||||
|
||||
Reference in New Issue
Block a user