Skip to content

Add File menu autosave toggle#412

Open
yusufm wants to merge 1 commit into
schuyler:mainfrom
yusufm:Codex/add-file-menu-autosave-toggle-019def52-b3da-7962-96cd-afa05d8d1592
Open

Add File menu autosave toggle#412
yusufm wants to merge 1 commit into
schuyler:mainfrom
yusufm:Codex/add-file-menu-autosave-toggle-019def52-b3da-7962-96cd-afa05d8d1592

Conversation

@yusufm
Copy link
Copy Markdown
Contributor

@yusufm yusufm commented May 3, 2026

Summary

  • Add an Auto Save toggle to the File menu
  • Wire the toggle to the existing editorAutoSave preference used by MPDocument.autosavesInPlace
  • Keep the menu item checked/unchecked through standard menu validation

Root cause

Autosave could already be disabled through preferences, but there was no fast document-menu control for users who want prompt-on-close behavior after disabling autosave.

Validation

  • ibtool --warnings --errors --notices MacDown/Localization/Base.lproj/MainMenu.xib
  • xcodebuild test -workspace 'MacDown 3000.xcworkspace' -scheme MacDown -destination 'platform=macOS' -only-testing:MacDownTests/MPDocumentIOTests/testAutosavesInPlaceRespectsPreference -only-testing:MacDownTests/MPDocumentIOTests/testToggleAutoSaveActionUpdatesPreference -only-testing:MacDownTests/MPDocumentIOTests/testToggleAutoSaveMenuValidationReflectsPreference

Related to #301

@yusufm yusufm marked this pull request as ready for review May 3, 2026 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant