mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-07 17:08:42 +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)
|
client.register_event_handler("ConfigValueChangedEvent", self.on_configvaluechanged_event)
|
||||||
|
|
||||||
def start(self):
|
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):
|
def stop(self):
|
||||||
self.config = {}
|
self.config = {}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue