Преглед изворни кода

wxGUI/extensions dialog: fetch extensions when dialog is created

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@54729 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa пре 12 година
родитељ
комит
61328c5ff0
1 измењених фајлова са 7 додато и 1 уклоњено
  1. 7 1
      gui/wxpython/modules/extensions.py

+ 7 - 1
gui/wxpython/modules/extensions.py

@@ -202,7 +202,9 @@ class InstallExtensionWindow(wx.Frame):
         # propagation stops here, no need to show text twice
         self.Bind(EVT_SHOW_NOTIFICATION,
                   lambda event: self.SetStatusText(event.message))
-
+        
+        wx.CallAfter(self._fetch)
+        
         self._layout()
 
     def _layout(self):
@@ -296,6 +298,10 @@ class InstallExtensionWindow(wx.Frame):
 
     def OnFetch(self, event):
         """!Fetch list of available extensions"""
+        self._fetch()
+
+    def _fetch(self):
+        """!Fetch list of available extensions"""
         wx.BeginBusyCursor()
         self.SetStatusText(_("Fetching list of modules from GRASS-Addons SVN (be patient)..."), 0)
         self.tree.Load(url = self.repo.GetValue().strip(), full = self.fullDesc.IsChecked())