فهرست منبع

wxGUI: fix posManager/Display settings

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@50056 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 13 سال پیش
والد
کامیت
6496580d13
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      gui/wxpython/lmgr/frame.py

+ 2 - 2
gui/wxpython/lmgr/frame.py

@@ -851,7 +851,7 @@ class GMFrame(wx.Frame):
         #
         #
         # load layer manager window properties
         # load layer manager window properties
         #
         #
-        if UserSettings.Get(group = 'workspace', key = 'posManager', subkey = 'enabled') is False:
+        if UserSettings.Get(group = 'general', key = 'workspace', subkey = ['posManager', 'enabled']) is False:
             if gxwXml.layerManager['pos']:
             if gxwXml.layerManager['pos']:
                 self.SetPosition(gxwXml.layerManager['pos'])
                 self.SetPosition(gxwXml.layerManager['pos'])
             if gxwXml.layerManager['size']:
             if gxwXml.layerManager['size']:
@@ -884,7 +884,7 @@ class GMFrame(wx.Frame):
                                          value = display['projection']['proj'])
                                          value = display['projection']['proj'])
             
             
             # set position and size of map display
             # set position and size of map display
-            if UserSettings.Get(group = 'workspace', key = 'posDisplay', subkey = 'enabled') is False:
+            if not UserSettings.Get(group = 'general', key = 'workspace', subkey = ['posDisplay', 'enabled']):
                 if display['pos']:
                 if display['pos']:
                     mapdisp.SetPosition(display['pos'])
                     mapdisp.SetPosition(display['pos'])
                 if display['size']:
                 if display['size']: