141 proxyAuthenticationRequired) |
141 proxyAuthenticationRequired) |
142 if SSL_AVAILABLE: |
142 if SSL_AVAILABLE: |
143 self.__sslErrorHandler = E5SslErrorHandler(self) |
143 self.__sslErrorHandler = E5SslErrorHandler(self) |
144 self.__networkManager.sslErrors.connect(self.__sslErrors) |
144 self.__networkManager.sslErrors.connect(self.__sslErrors) |
145 self.__replies = [] |
145 self.__replies = [] |
|
146 |
|
147 self.__ui.onlineStateChanged.connect(self.__onlineStateChanged) |
146 |
148 |
147 def finalizeSetup(self): |
149 def finalizeSetup(self): |
148 """ |
150 """ |
149 Public method to finalize the setup of the plugin manager. |
151 Public method to finalize the setup of the plugin manager. |
150 """ |
152 """ |
1050 for name, module in list(self.__onDemandActiveModules.items()): |
1052 for name, module in list(self.__onDemandActiveModules.items()): |
1051 if getattr(module, "pluginType") == "version_control": |
1053 if getattr(module, "pluginType") == "version_control": |
1052 self.deactivatePlugin(name, True) |
1054 self.deactivatePlugin(name, True) |
1053 |
1055 |
1054 ######################################################################## |
1056 ######################################################################## |
1055 ## Methods creation of the plug-ins download directory |
1057 ## Methods for the creation of the plug-ins download directory |
1056 ######################################################################## |
1058 ######################################################################## |
1057 |
1059 |
1058 def __checkPluginsDownloadDirectory(self): |
1060 def __checkPluginsDownloadDirectory(self): |
1059 """ |
1061 """ |
1060 Private slot to check for the existence of the plugins download |
1062 Private slot to check for the existence of the plugins download |
1094 self.__checkPluginsDownloadDirectory() |
1096 self.__checkPluginsDownloadDirectory() |
1095 |
1097 |
1096 ######################################################################## |
1098 ######################################################################## |
1097 ## Methods for automatic plug-in update check below |
1099 ## Methods for automatic plug-in update check below |
1098 ######################################################################## |
1100 ######################################################################## |
|
1101 |
|
1102 def __onlineStateChanged(self, online): |
|
1103 """ |
|
1104 Private slot handling changes in online state. |
|
1105 |
|
1106 @param online flag indicating the online state |
|
1107 @type bool |
|
1108 """ |
|
1109 if online: |
|
1110 self.checkPluginUpdatesAvailable() |
1099 |
1111 |
1100 def checkPluginUpdatesAvailable(self): |
1112 def checkPluginUpdatesAvailable(self): |
1101 """ |
1113 """ |
1102 Public method to check the availability of updates of plug-ins. |
1114 Public method to check the availability of updates of plug-ins. |
1103 """ |
1115 """ |