mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-04 00:25:13 +01:00
Forgot the get() method on db.prefs wrapper
This commit is contained in:
parent
065becd6a6
commit
bc572ecc76
1 changed files with 4 additions and 0 deletions
|
|
@ -128,6 +128,10 @@ def disable_setting(self, val):
|
|||
prefs = self.db().backend.prefs
|
||||
prefs.disable_setting = val
|
||||
|
||||
def get(self, key, default=None):
|
||||
prefs = self.db().backend.prefs
|
||||
return prefs.get(key, default)
|
||||
|
||||
def set(self, key, val):
|
||||
self.__setitem__(key, val)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue