mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-21 03:54:50 +00:00
[UI] Add __contains__ to deluge/ui/coreconfig.py
This commit is contained in:
parent
67cefb1211
commit
b9f3f549a1
1 changed files with 3 additions and 0 deletions
|
@ -35,6 +35,9 @@ class CoreConfig(component.Component):
|
|||
def stop(self):
|
||||
self.config = {}
|
||||
|
||||
def __contains__(self, key):
|
||||
return key in self.config
|
||||
|
||||
def __getitem__(self, key):
|
||||
return self.config[key]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue