Draft: Properly remove Snap toolbar when switching workbenches (#8172)

This commit is contained in:
Roy-043
2023-01-12 15:29:21 +01:00
committed by GitHub
parent 0930544c21
commit dfb5f5de4b

View File

@@ -1589,9 +1589,9 @@ class Snapper:
def hide(self):
"""Hide the toolbar."""
toolbar = self.get_snap_toolbar()
if toolbar:
toolbar.hide()
if hasattr(self, "toolbar") and self.toolbar:
self.toolbar.hide()
self.toolbar.toggleViewAction().setVisible(False)
def setGrid(self):