Skip to content

Commit 18c5fde

Browse files
committed
FIX: Fix bar hide in offscreen mode
1 parent 3059573 commit 18c5fde

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

surfer/viz.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -562,13 +562,13 @@ def toggle_toolbars(self, show=None):
562562
if hasattr(bars[0], 'isVisible'):
563563
# QT4
564564
show = not bars[0].isVisible()
565-
else:
565+
elif hasattr(bars[0], 'Show'):
566566
# WX
567567
show = not bars[0].Shown()
568568
for bar in bars:
569569
if hasattr(bar, 'setVisible'):
570570
bar.setVisible(show)
571-
else:
571+
elif hasattr(bar, 'Show'):
572572
bar.Show(show)
573573

574574
def _get_one_brain(self, d, name):

0 commit comments

Comments
 (0)