Add a defer property to use to check when the CoreConfig is ready
This commit is contained in:
parent
00d078a5ea
commit
56a1c50bc6
|
@ -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…
Reference in New Issue