Skip to content

Commit

Permalink
Merge branch 'fix_geosearch_show' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
tsielaff committed Nov 9, 2020
2 parents e5f8da4 + 056647f commit e97b6ca
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions freecad/cadenas3dfindit/dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,16 @@ def getWidget():
browserWidget = createWidget()
return browserWidget

def isVisible():
return getWidget().toggleViewAction().isChecked()

def show():
getWidget().toggleViewAction().setChecked(True)
if not isVisible():
toggle()

def hide():
getWidget().toggleViewAction().setChecked(False)
if isVisible():
toggle()

def toggle():
getWidget().toggleViewAction().trigger()

0 comments on commit e97b6ca

Please sign in to comment.