1225 def checkPluginUpdatesAvailable(self): |
1225 def checkPluginUpdatesAvailable(self): |
1226 """ |
1226 """ |
1227 Public method to check the availability of updates of plug-ins. |
1227 Public method to check the availability of updates of plug-ins. |
1228 """ |
1228 """ |
1229 period = Preferences.getPluginManager("UpdatesCheckInterval") |
1229 period = Preferences.getPluginManager("UpdatesCheckInterval") |
1230 if period == 0: |
1230 if period == 0 or not self.__ui.isOnline(): |
1231 return |
1231 return |
1232 elif period in [1, 2, 3]: |
1232 elif period in [1, 2, 3]: |
1233 lastModified = QFileInfo(self.pluginRepositoryFile).lastModified() |
1233 lastModified = QFileInfo(self.pluginRepositoryFile).lastModified() |
1234 if lastModified.isValid() and lastModified.date().isValid(): |
1234 if lastModified.isValid() and lastModified.date().isValid(): |
1235 lastModifiedDate = lastModified.date() |
1235 lastModifiedDate = lastModified.date() |