PluginManager/PluginManager.py

changeset 4630
7b0e38956b5c
parent 4629
99aaac59be4f
child 4631
5c1a96925da4
diff -r 99aaac59be4f -r 7b0e38956b5c PluginManager/PluginManager.py
--- a/PluginManager/PluginManager.py	Tue Dec 29 15:13:23 2015 +0100
+++ b/PluginManager/PluginManager.py	Tue Dec 29 18:59:46 2015 +0100
@@ -143,6 +143,8 @@
             self.__sslErrorHandler = E5SslErrorHandler(self)
             self.__networkManager.sslErrors.connect(self.__sslErrors)
         self.__replies = []
+        
+        self.__ui.onlineStateChanged.connect(self.__onlineStateChanged)
     
     def finalizeSetup(self):
         """
@@ -1052,7 +1054,7 @@
                 self.deactivatePlugin(name, True)
     
     ########################################################################
-    ## Methods creation of the plug-ins download directory
+    ## Methods for the creation of the plug-ins download directory
     ########################################################################
     
     def __checkPluginsDownloadDirectory(self):
@@ -1097,6 +1099,16 @@
     ## Methods for automatic plug-in update check below
     ########################################################################
     
+    def __onlineStateChanged(self, online):
+        """
+        Private slot handling changes in online state.
+        
+        @param online flag indicating the online state
+        @type bool
+        """
+        if online:
+            self.checkPluginUpdatesAvailable()
+    
     def checkPluginUpdatesAvailable(self):
         """
         Public method to check the availability of updates of plug-ins.

eric ide

mercurial