BIM: Add IsActive to BIM_Text

Fixes #14586.
This commit is contained in:
Roy-043
2024-06-13 22:08:59 +02:00
committed by Yorik van Havre
parent a02d4a3cff
commit 6a2eca41b3

View File

@@ -42,6 +42,10 @@ class BIM_Text:
"Accel": "T, E",
}
def IsActive(self):
act_win = FreeCADGui.getMainWindow().getActiveWindow()
return hasattr(act_win, "getSceneGraph") or hasattr(act_win, "getPage")
def Activated(self):
import draftutils.utils as utils