mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-21 03:54:50 +00:00
Add a defer property to use to check when the CoreConfig is ready
This commit is contained in:
parent
00d078a5ea
commit
56a1c50bc6
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ class CoreConfig(component.Component):
|
|||
client.register_event_handler("ConfigValueChangedEvent", self.on_configvaluechanged_event)
|
||||
|
||||
def start(self):
|
||||
client.core.get_config().addCallback(self._on_get_config)
|
||||
self.start_defer = client.core.get_config().addCallback(self._on_get_config)
|
||||
|
||||
def stop(self):
|
||||
self.config = {}
|
||||
|
|
Loading…
Add table
Reference in a new issue