Commit 02bd4370caa42d7941f84746c6eca35f49c400cd
1 parent
6b28d849
Exists in
mactoolbar_bkp
A Refresh after untoggle all
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
invesalius/gui/frame.py
... | ... | @@ -1387,7 +1387,7 @@ class SliceToolBar(AuiToolBar): |
1387 | 1387 | # ------------------------------------------------------------------ |
1388 | 1388 | # ------------------------------------------------------------------ |
1389 | 1389 | |
1390 | -class LayoutToolBar(wx.ToolBar): | |
1390 | +class LayoutToolBar(AuiToolBar): | |
1391 | 1391 | """ |
1392 | 1392 | Toolbar related to general layout/ visualization configuration |
1393 | 1393 | e.g: show/hide task panel and show/hide text on viewers. |
... | ... | @@ -1505,7 +1505,7 @@ class LayoutToolBar(wx.ToolBar): |
1505 | 1505 | self.ToggleText() |
1506 | 1506 | |
1507 | 1507 | for item in VIEW_TOOLS: |
1508 | - state = self.GetToolState(item) | |
1508 | + state = self.GetToolToggled(item) | |
1509 | 1509 | if state and (item != id): |
1510 | 1510 | self.ToggleTool(item, False) |
1511 | 1511 | ... | ... |