Skip to content

Commit

Permalink
BIM: Add IsActive to BIM_Text
Browse files Browse the repository at this point in the history
  • Loading branch information
Roy-043 committed Jun 13, 2024
1 parent 2c4ed59 commit 4df0c8d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Mod/BIM/bimcommands/BimText.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ def GetResources(self):
"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

Expand Down

0 comments on commit 4df0c8d

Please sign in to comment.