fix: use Gui.Document.Modified instead of App.Document.Modified #14
Reference in New Issue
Block a user
Delete Branch "fix/save-modified-attribute"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Every Silo save fails with:
silo_origin.py:396doesdoc.Modified = Falsewheredocis anApp.Document. TheModifiedproperty only exists onGui.Document(FreeCADGui.getDocument()). The save itself succeeds but the modified flag is never cleared, so the document always appears unsaved.Fix
Replace
doc.Modified = Falsewith:This matches the pattern already used correctly in
silo_commands.py:910-912.Closes #13 (Bug 1)