Mercurial > libervia-desktop-kivy
comparison cagou/core/cagou_main.py @ 370:1a12bbd80943
android: autoconnect profile using the new `profileAutoconnectGet` backend method:
thanks to this method, Cagou know which profile is started automatically in backend, and
can start it in frontend too.
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 27 Jan 2020 21:17:08 +0100 |
parents | 58e395c0777e |
children | 5d994be1161b |
comparison
equal
deleted
inserted
replaced
369:bbf992b0be0d | 370:1a12bbd80943 |
---|---|
513 def onBackendReady(self): | 513 def onBackendReady(self): |
514 super().onBackendReady() | 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 if local_platform.do_postInit(): |
519 self.postInit() | |
519 | 520 |
520 def postInit(self, __=None): | 521 def postInit(self, __=None): |
521 # FIXME: resize doesn't work with SDL2 on android, so we use below_target for now | 522 # FIXME: resize doesn't work with SDL2 on android, so we use below_target for now |
522 self.app.root_window.softinput_mode = "below_target" | 523 self.app.root_window.softinput_mode = "below_target" |
523 profile_manager = self.app._profile_manager | 524 profile_manager = self.app._profile_manager |