Draft: Prevent user to remove core properties

This commit is contained in:
Florian Foinant-Willig
2025-03-16 22:21:44 +01:00
committed by Kacper Donat
parent 4a61a49456
commit 19c125e898
34 changed files with 386 additions and 250 deletions

View File

@@ -41,7 +41,7 @@ class Block(DraftObject):
_tip = QT_TRANSLATE_NOOP("App::Property",
"The components of this block")
obj.addProperty("App::PropertyLinkList","Components", "Draft", _tip)
obj.addProperty("App::PropertyLinkList","Components", "Draft", _tip, locked=True)
def onDocumentRestored(self, obj):
super().onDocumentRestored(obj)