mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-06-04 21:15:24 -04:00
Forgot the get() method on db.prefs wrapper
This commit is contained in:
@@ -128,6 +128,10 @@ class ThreadSafePrefs(MutableMapping):
|
||||
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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user