PluginManager/PluginManager.py

changeset 4629
99aaac59be4f
parent 4626
c891c7ad6b60
child 4630
7b0e38956b5c
equal deleted inserted replaced
4627:a33560bd2d2d 4629:99aaac59be4f
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()

eric ide

mercurial