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() |