Mercurial > libervia-desktop-kivy
comparison cagou/core/cagou_main.py @ 356:307c2501d8b2
chat: keep as many instances of opened chat as there are active WHWrapper, instead of just one:
Chat instances can be shown on any WHWrapper, even in all at the same time, so we keep as
many instances as active wrapper to avoid unnecessary widget (re)creation
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 17 Jan 2020 20:35:57 +0100 |
parents | 19422bbd9c8e |
children | 4d3a0c4f2430 |
comparison
equal
deleted
inserted
replaced
355:8b6621cc142c | 356:307c2501d8b2 |
---|---|
923 self.app.connected = False | 923 self.app.connected = False |
924 | 924 |
925 ## misc ## | 925 ## misc ## |
926 | 926 |
927 def plugging_profiles(self): | 927 def plugging_profiles(self): |
928 self._widgets_handler = widgets_handler.WidgetsHandler() | 928 self.widgets_handler = widgets_handler.WidgetsHandler() |
929 self.app.root.changeWidget(self._widgets_handler) | 929 self.app.root.changeWidget(self.widgets_handler) |
930 self.bridge.menusGet("", C.NO_SECURITY_LIMIT, callback=self._menusGetCb) | 930 self.bridge.menusGet("", C.NO_SECURITY_LIMIT, callback=self._menusGetCb) |
931 | 931 |
932 def setPresenceStatus(self, show='', status=None, profile=C.PROF_KEY_NONE): | 932 def setPresenceStatus(self, show='', status=None, profile=C.PROF_KEY_NONE): |
933 log.info("Profile presence status set to {show}/{status}".format(show=show, | 933 log.info("Profile presence status set to {show}/{status}".format(show=show, |
934 status=status)) | 934 status=status)) |