480 ).format(url, self.tr("Computer is offline."))) |
480 ).format(url, self.tr("Computer is offline."))) |
481 |
481 |
482 def __downloadFileDone(self): |
482 def __downloadFileDone(self): |
483 """ |
483 """ |
484 Private method called, after the file has been downloaded |
484 Private method called, after the file has been downloaded |
485 from the internet. |
485 from the Internet. |
486 """ |
486 """ |
487 self.__updateButton.setEnabled(True) |
487 self.__updateButton.setEnabled(True) |
488 self.__downloadCancelButton.setEnabled(False) |
488 self.__downloadCancelButton.setEnabled(False) |
489 self.__onlineStateChanged( |
489 self.__onlineStateChanged(self.__isOnline()) |
490 self.__isOnline()) |
|
491 |
490 |
492 ok = True |
491 ok = True |
493 reply = self.sender() |
492 reply = self.sender() |
494 if reply in self.__replies: |
493 if reply in self.__replies: |
495 self.__replies.remove(reply) |
494 self.__replies.remove(reply) |
623 itm.setToolTip(1, self.tr("updated download available")) |
622 itm.setToolTip(1, self.tr("updated download available")) |
624 self.__updateRemoteItems += 1 |
623 self.__updateRemoteItems += 1 |
625 |
624 |
626 def __updateStatus(self, filename, version): |
625 def __updateStatus(self, filename, version): |
627 """ |
626 """ |
628 Private method to check, if the given archive update status. |
627 Private method to check the given archive update status. |
629 |
628 |
630 @param filename data for the filename field (string) |
629 @param filename data for the filename field (string) |
631 @param version data for the version field (string) |
630 @param version data for the version field (string) |
632 @return plug-in update status (integer, one of PluginStatusNew, |
631 @return plug-in update status (integer, one of PluginStatusNew, |
633 PluginStatusUpToDate, PluginStatusLocalUpdate, |
632 PluginStatusUpToDate, PluginStatusLocalUpdate, |