[GRASS-SVN] r67740 - grass/branches/releasebranch_7_0/gui/wxpython/modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Feb 6 07:03:37 PST 2016
Author: martinl
Date: 2016-02-06 07:03:37 -0800 (Sat, 06 Feb 2016)
New Revision: 67740
Modified:
grass/branches/releasebranch_7_0/gui/wxpython/modules/extensions.py
Log:
wxGUI/extensions: list only first 10 files
(merge r67668 from trunk)
Modified: grass/branches/releasebranch_7_0/gui/wxpython/modules/extensions.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/modules/extensions.py 2016-02-06 14:36:16 UTC (rev 67739)
+++ grass/branches/releasebranch_7_0/gui/wxpython/modules/extensions.py 2016-02-06 15:03:37 UTC (rev 67740)
@@ -9,7 +9,7 @@
- extensions::ManageExtensionWindow
- extensions::CheckListExtension
-(C) 2008-2014 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.
@@ -423,6 +423,9 @@
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?") % \
More information about the grass-commit
mailing list