Forgot the get() method on db.prefs wrapper

This commit is contained in:
Kovid Goyal 2020-09-19 07:27:54 +05:30
parent 065becd6a6
commit bc572ecc76
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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)