Merge pull request #20354 from Roy-043/Draft-show-and-hide-Tray-with-delay
Draft: show and hide Tray with delay
This commit is contained in:
@@ -1631,7 +1631,7 @@ class DraftToolBar:
|
||||
def Activated(self):
|
||||
self.setWatchers()
|
||||
if hasattr(self,"tray"):
|
||||
self.tray.show()
|
||||
todo.delay(self.tray.show, None)
|
||||
|
||||
def Deactivated(self):
|
||||
if (FreeCAD.activeDraftCommand is not None):
|
||||
@@ -1640,7 +1640,7 @@ class DraftToolBar:
|
||||
FreeCADGui.Control.clearTaskWatcher()
|
||||
#self.tray = None
|
||||
if hasattr(self,"tray"):
|
||||
self.tray.hide()
|
||||
todo.delay(self.tray.hide, None)
|
||||
|
||||
def reset_ui_values(self):
|
||||
"""Method to reset task panel values"""
|
||||
|
||||
Reference in New Issue
Block a user