Part: make Part_EditAttachment nesting aware (#25887)

This commit is contained in:
Roy-043
2025-12-03 05:44:55 +01:00
committed by GitHub
parent a8bb43837e
commit 867309b0d4

View File

@@ -135,7 +135,7 @@ def RefsFromStrList(strings, document):
def GetSelectionAsLinkSubList():
sel = Gui.Selection.getSelectionEx()
sel = Gui.Selection.getSelectionEx("", 0)
result = []
for selobj in sel:
for subname in selobj.SubElementNames:
@@ -372,7 +372,7 @@ class AttachmentEditorTaskPanel(FrozenClass):
self.i_active_ref = -1
self.auto_next = False
Gui.Selection.addObserver(self)
Gui.Selection.addObserver(self, 0)
self.updatePreview()
self.updateRefButtons()