瀏覽代碼

wxGUI/extensions: list only first 10 files

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@67668 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 9 年之前
父節點
當前提交
8d85c960f1
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      gui/wxpython/modules/extensions.py

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

@@ -9,7 +9,7 @@ Classes:
  - extensions::ManageExtensionWindow
  - extensions::CheckListExtension
 
-(C) 2008-2015 by the GRASS Development Team
+(C) 2008-2016 by the GRASS Development Team
 
 This program is free software under the GNU General Public License
 (>=v2). Read the file COPYING that comes with GRASS for details.
@@ -424,6 +424,9 @@ class ManageExtensionWindow(wx.Frame):
         for ext in eList:
             files = RunCommand('g.extension', parent = self, read = True, quiet = True,
                                extension = ext, operation = 'remove').splitlines()
+            if len(files) > 10:
+                files = files[:10]
+                files.append('...')
             dlg = wx.MessageDialog(parent = self,
                                    message = _("List of files to be removed:\n%(files)s\n\n"
                                                "Do you want really to remove <%(ext)s> extension?") % \