Sfoglia il codice sorgente

wxGUI: be less verbose when changing computational region contextual menu
(merge https://trac.osgeo.org/grass/changeset/62624 from trunk)


git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@62661 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 10 anni fa
parent
commit
0781f7286c
1 ha cambiato i file con 2 aggiunte e 4 eliminazioni
  1. 2 4
      gui/wxpython/lmgr/layertree.py

+ 2 - 4
gui/wxpython/lmgr/layertree.py

@@ -666,11 +666,10 @@ class LayerTree(treemixin.DragAndDrop, CT.CustomTreeCtrl):
         mapLayer = self.GetLayerInfo(self.layer_selected, key = 'maplayer')
         
         cmd = ['g.region',
-               '-p',
                'zoom=%s' % mapLayer.GetName()]
         
         # print output to command log area
-        self._giface.RunCmd(cmd, notification=Notification.HIGHLIGHT)
+        self._giface.RunCmd(cmd, notification=Notification.NO_NOTIFICATION)
         
         # re-render map display
         self._giface.GetMapWindow().UpdateMap(render=True)
@@ -705,11 +704,10 @@ class LayerTree(treemixin.DragAndDrop, CT.CustomTreeCtrl):
         
         # print output to command log area
         if len(cmd) > 1:
-            cmd.append('-p')
             if mltype == '3d-raster':
                 cmd.append('-3')
             self._giface.RunCmd(cmd, compReg = False,
-                                notification=Notification.HIGHLIGHT)
+                                notification=Notification.NO_NOTIFICATION)
         
         # re-render map display
         self._giface.GetMapWindow().UpdateMap(render=True)