eric6/PluginManager/PluginManager.py

changeset 7946
6901746220fc
parent 7923
91e843545d9a
child 7967
f5da85158db2
equal deleted inserted replaced
7945:76daafe10009 7946:6901746220fc
1246 def checkPluginUpdatesAvailable(self): 1246 def checkPluginUpdatesAvailable(self):
1247 """ 1247 """
1248 Public method to check the availability of updates of plug-ins. 1248 Public method to check the availability of updates of plug-ins.
1249 """ 1249 """
1250 period = Preferences.getPluginManager("UpdatesCheckInterval") 1250 period = Preferences.getPluginManager("UpdatesCheckInterval")
1251 if period == 0 or not self.__ui.isOnline(): 1251 if period == 0:
1252 return 1252 return
1253 elif period in [1, 2, 3]: 1253 elif period in [1, 2, 3]:
1254 lastModified = QFileInfo(self.pluginRepositoryFile).lastModified() 1254 lastModified = QFileInfo(self.pluginRepositoryFile).lastModified()
1255 if lastModified.isValid() and lastModified.date().isValid(): 1255 if lastModified.isValid() and lastModified.date().isValid():
1256 lastModifiedDate = lastModified.date() 1256 lastModifiedDate = lastModified.date()

eric ide

mercurial