mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-21 03:54:50 +00:00
Add '__getattr__' to CoreConfig to access the dictionary directly
This commit is contained in:
parent
4878743d68
commit
6d33ff9902
1 changed files with 4 additions and 0 deletions
|
@ -51,3 +51,7 @@ class CoreConfig(component.Component):
|
|||
|
||||
def on_configvaluechanged_event(self, key, value):
|
||||
self.config[key] = value
|
||||
|
||||
def __getattr__(self, attr):
|
||||
# We treat this directly interacting with the dictionary
|
||||
return getattr(self.config, attr)
|
||||
|
|
Loading…
Add table
Reference in a new issue