1100 def checkPluginUpdatesAvailable(self): |
1100 def checkPluginUpdatesAvailable(self): |
1101 """ |
1101 """ |
1102 Public method to check the availability of updates of plug-ins. |
1102 Public method to check the availability of updates of plug-ins. |
1103 """ |
1103 """ |
1104 period = Preferences.getPluginManager("UpdatesCheckInterval") |
1104 period = Preferences.getPluginManager("UpdatesCheckInterval") |
1105 if period == 0: |
1105 if period == 0 or not self.__ui.isOnline(): |
1106 return |
1106 return |
1107 elif period in [1, 2, 3]: |
1107 elif period in [1, 2, 3]: |
1108 lastModified = QFileInfo(self.pluginRepositoryFile).lastModified() |
1108 lastModified = QFileInfo(self.pluginRepositoryFile).lastModified() |
1109 if lastModified.isValid() and lastModified.date().isValid(): |
1109 if lastModified.isValid() and lastModified.date().isValid(): |
1110 lastModifiedDate = lastModified.date() |
1110 lastModifiedDate = lastModified.date() |