fix: Silo_Pull crash — App.Document has no IsModified() attribute #170
Reference in New Issue
Block a user
Delete Branch "fix/pull-is-modified-bug"
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?
Bug
Silo_Pullcommand crashes with:The error occurs in
_check_pull_conflicts()atsilo_commands.py:993.Root Cause
App.Documentdoes not have anIsModified()method. The correct API for checking unsaved changes isFreeCADGui.getDocument(doc.Name).Modified— a boolean property on the GUI document object.Fix
Replace
doc.IsModified()withFreeCADGui.getDocument(doc.Name).Modified, matching the existing pattern used elsewhere in the same file (lines 891, 913, 915).Submodule Note
The
mods/silosubmodule points to branchfix/pull-is-modified-bugonsilo-mod.