diff --git a/deluge/ui/coreconfig.py b/deluge/ui/coreconfig.py index 766466bb9..887e37e50 100644 --- a/deluge/ui/coreconfig.py +++ b/deluge/ui/coreconfig.py @@ -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]