Skip to content

Commit

Permalink
wxGUI WSPropertiesDialog: fix applying ws panel widgets updates, afte…
Browse files Browse the repository at this point in the history
…r panel is the shown (#665)
  • Loading branch information
tmszi authored and petrasovaa committed May 30, 2020
1 parent cf3c123 commit e3e9fe0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions gui/wxpython/web_services/dialogs.py
Expand Up @@ -489,9 +489,10 @@ def _showWsPanel(self, ws):
self.active_ws_panel.Hide()

self.active_ws_panel = self.ws_panels[ws]['panel']
self.active_ws_panel.Show()
self.SetMaxSize((-1, -1))
self.active_ws_panel.GetContainingSizer().Layout()
if not self.active_ws_panel.IsShown():
self.active_ws_panel.Show()
self.SetMaxSize((-1, -1))
self.active_ws_panel.GetContainingSizer().Layout()

def OnAdvConnPaneChanged(self, event):
"""Collapse search module box
Expand Down Expand Up @@ -810,9 +811,9 @@ def _updateWsPanelWidgetsByCmd(self, cmd):

ws = self._getWSfromCmd(cmd)
if self.ws_panels[ws]['panel'].IsConnected():
self.ws_panels[ws]['panel'].UpdateWidgetsByCmd(cmd)
self.choose_ws_rb.SetStringSelection(self.ws_panels[ws]['label'])
self._showWsPanel(ws)
self.ws_panels[ws]['panel'].UpdateWidgetsByCmd(cmd)

def _getWSfromCmd(self, cmd):
driver = cmd[1]['driver']
Expand Down

0 comments on commit e3e9fe0

Please sign in to comment.