eric7/PluginManager/PluginManager.py

branch
eric7
changeset 8385
a578b45eb13e
parent 8366
2a9f5153c438
child 8444
88b242eba71b
equal deleted inserted replaced
8384:b5c064649b49 8385:a578b45eb13e
161 if SSL_AVAILABLE: 161 if SSL_AVAILABLE:
162 self.__sslErrorHandler = EricSslErrorHandler(self) 162 self.__sslErrorHandler = EricSslErrorHandler(self)
163 self.__networkManager.sslErrors.connect(self.__sslErrors) 163 self.__networkManager.sslErrors.connect(self.__sslErrors)
164 self.__replies = [] 164 self.__replies = []
165 165
166 with contextlib.suppress(AttributeError):
167 self.__ui.onlineStateChanged.connect(self.__onlineStateChanged)
168
169 def finalizeSetup(self): 166 def finalizeSetup(self):
170 """ 167 """
171 Public method to finalize the setup of the plugin manager. 168 Public method to finalize the setup of the plugin manager.
172 """ 169 """
173 for module in ( 170 for module in (
1223 1220
1224 ######################################################################## 1221 ########################################################################
1225 ## Methods for automatic plug-in update check below 1222 ## Methods for automatic plug-in update check below
1226 ######################################################################## 1223 ########################################################################
1227 1224
1228 def __onlineStateChanged(self, online):
1229 """
1230 Private slot handling changes in online state.
1231
1232 @param online flag indicating the online state
1233 @type bool
1234 """
1235 if online:
1236 self.checkPluginUpdatesAvailable()
1237
1238 def checkPluginUpdatesAvailable(self): 1225 def checkPluginUpdatesAvailable(self):
1239 """ 1226 """
1240 Public method to check the availability of updates of plug-ins. 1227 Public method to check the availability of updates of plug-ins.
1241 """ 1228 """
1242 period = Preferences.getPluginManager("UpdatesCheckInterval") 1229 period = Preferences.getPluginManager("UpdatesCheckInterval")

eric ide

mercurial