소스 검색

wxGUI/extensions: no need for 'fetch full info' checkbox

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@54733 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 12 년 전
부모
커밋
33bed2cbd6
1개의 변경된 파일3개의 추가작업 그리고 7개의 파일을 삭제
  1. 3 7
      gui/wxpython/modules/extensions.py

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

@@ -142,10 +142,7 @@ class InstallExtensionWindow(wx.Frame):
                                     label = " %s " % _("List of extensions - double-click to install"))
         
         self.repo = wx.TextCtrl(parent = self.panel, id = wx.ID_ANY)
-        self.fullDesc = wx.CheckBox(parent = self.panel, id = wx.ID_ANY,
-                                    label = _("Fetch full info including description and keywords"))
-        self.fullDesc.SetValue(True)
-
+        
         self.tree   = ExtensionTree(parent = self.panel, log = parent.GetLogWindow())
         
         self.modulesData = ExtensionModulesData(modulesDesc = self.tree.GetModules())
@@ -218,7 +215,6 @@ class InstallExtensionWindow(wx.Frame):
                       flag = wx.ALL | wx.ALIGN_CENTER_VERTICAL, border = 1)
         repoSizer.Add(item = repo1Sizer,
                       flag = wx.EXPAND)
-        repoSizer.Add(item = self.fullDesc)
         
         findSizer = wx.BoxSizer(wx.HORIZONTAL)
         findSizer.Add(item = self.search, proportion = 1)
@@ -304,7 +300,7 @@ class InstallExtensionWindow(wx.Frame):
         """!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())
+        self.tree.Load(url = self.repo.GetValue().strip())
         modulesDesc = self.tree.GetModules()
         self.modulesData.SetData(modulesDesc)
         self.SetStatusText("", 0)
@@ -401,7 +397,7 @@ class ExtensionTree(ItemTree):
         
         return None
     
-    def Load(self, url, full = False):
+    def Load(self, url, full = True):
         """!Load list of extensions"""
         self.DeleteAllItems()
         self.root = self.AddRoot(_("Menu tree"))