comparison cagou/core/cagou_main.py @ 366:58e395c0777e

core: don't call onBackendReady explicitly anymore now that it is handle in QuickApp
author Goffi <goffi@goffi.org>
date Mon, 27 Jan 2020 21:17:08 +0100
parents 816a0c880f52
children 1a12bbd80943
comparison
equal deleted inserted replaced
365:9c6fe392d623 366:58e395c0777e
477 self.contact_lists.fill() 477 self.contact_lists.fill()
478 478
479 def onBridgeConnected(self): 479 def onBridgeConnected(self):
480 super(Cagou, self).onBridgeConnected() 480 super(Cagou, self).onBridgeConnected()
481 self.registerSignal("otrState", iface="plugin") 481 self.registerSignal("otrState", iface="plugin")
482 self.bridge.getReady(self.onBackendReady)
483 482
484 def _bridgeEb(self, failure): 483 def _bridgeEb(self, failure):
485 if bridge_name == "pb" and sys.platform == "android": 484 if bridge_name == "pb" and sys.platform == "android":
486 try: 485 try:
487 self.retried += 1 486 self.retried += 1
510 509
511 def _getVersionCb(self, version): 510 def _getVersionCb(self, version):
512 self.backend_version = version 511 self.backend_version = version
513 512
514 def onBackendReady(self): 513 def onBackendReady(self):
514 super().onBackendReady()
515 self.app.showWidget() 515 self.app.showWidget()
516 self.bridge.getVersion(callback=self._getVersionCb) 516 self.bridge.getVersion(callback=self._getVersionCb)
517 self.app.initFrontendState() 517 self.app.initFrontendState()
518 self.postInit() 518 self.postInit()
519 519