eric7/EricNetwork/EricNetworkIcon.py

branch
eric7
changeset 8585
c9996d52a1b9
parent 8580
e91b276e0771
child 8586
6a315398a554
equal deleted inserted replaced
8584:90391fda03d5 8585:c9996d52a1b9
45 QNetworkInformation.Reachability.Online 45 QNetworkInformation.Reachability.Online
46 ) 46 )
47 self.__reachabilityChanged( 47 self.__reachabilityChanged(
48 QNetworkInformation.instance().reachability()) 48 QNetworkInformation.instance().reachability())
49 49
50 # TODO: QNetworkInformation: re-enable once problem is clear 50 QNetworkInformation.instance().reachabilityChanged.connect(
51 ## QNetworkInformation.instance().reachabilityChanged.connect( 51 self.__reachabilityChanged)
52 ## self.__reachabilityChanged)
53 else: 52 else:
54 # assume to be 'always online' if no backend could be loaded or 53 # assume to be 'always online' if no backend could be loaded or
55 # dynamic online check is switched of 54 # dynamic online check is switched of
56 self.__online = True 55 self.__online = True
57 self.__reachabilityChanged(QNetworkInformation.Reachability.Online) 56 self.__reachabilityChanged(QNetworkInformation.Reachability.Online)
58 57
59 @pyqtSlot(QNetworkInformation.Reachability)
60 def __reachabilityChanged(self, reachability): 58 def __reachabilityChanged(self, reachability):
61 """ 59 """
62 Private slot handling reachability state changes. 60 Private slot handling reachability state changes.
63 61
64 @param reachability new reachability state 62 @param reachability new reachability state

eric ide

mercurial