Arch: Hide/show windows together with their parents - fixes #1733

This commit is contained in:
Yorik van Havre
2014-09-16 20:03:50 -03:00
parent 9f7956b17e
commit f1dffbb90e
3 changed files with 9 additions and 4 deletions

View File

@@ -639,6 +639,10 @@ class ViewProviderComponent:
return
def onChanged(self,vobj,prop):
if prop == "Visibility":
for obj in vobj.Object.Additions+vobj.Object.Subtractions:
if Draft.getType(obj) == "Window":
obj.ViewObject.Visibility = vobj.Visibility
return
def attach(self,vobj):