diff sat/core/sat_main.py @ 2886:b06cb71079fa

core (xmpp): new networkEnabled() and networkDisabled() methods: those methods can be called by platform specific plugins when network is known to be (un)available. This way, connection attempts can be cancelled when no network is available, saving resources (notably battery on mobile devices), or attempts can be restarted immediately when network is known to be available again.
author Goffi <goffi@goffi.org>
date Sat, 06 Apr 2019 19:05:57 +0200
parents 5ba98fd6c9a4
children 82b781c46841
line wrap: on
line diff
--- a/sat/core/sat_main.py	Sat Apr 06 18:51:20 2019 +0200
+++ b/sat/core/sat_main.py	Sat Apr 06 19:05:57 2019 +0200
@@ -418,7 +418,7 @@
 
         def connectProfile(__=None):
             if self.isConnected(profile):
-                log.info(_("already connected !"))
+                log.info(_(u"already connected !"))
                 return True
 
             if self.memory.isComponent(profile):