mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Forgot the get() method on db.prefs wrapper
This commit is contained in:
parent
065becd6a6
commit
bc572ecc76
@ -128,6 +128,10 @@ class ThreadSafePrefs(MutableMapping):
|
|||||||
prefs = self.db().backend.prefs
|
prefs = self.db().backend.prefs
|
||||||
prefs.disable_setting = val
|
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):
|
def set(self, key, val):
|
||||||
self.__setitem__(key, val)
|
self.__setitem__(key, val)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user