I'm running an "itemClicked.connect" and it doesn't seem to be aware as I change to multiple documents in the tree. I tried "doc = App.ActiveDocument" but that did not do it.
What statement refocuses the change to a new selected/highlighted document in the tree?
Thanks
Selections with multiple documents, how to refresh focus?
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: Selections with multiple documents, how to refresh focus?
I can't understand exactly what you're trying to achieve, but wouldn't a SelectionObserver be the solution ?
Re: Selections with multiple documents, how to refresh focus?
I didn't quite get document activation, now I get it. Thanks openbrain.