fix(app): fold reading toggle into the system View menu (#84)

CommandMenu("View") created a second View menu beside the system
one. CommandGroup(after: .toolbar) puts Toggle Reading Mode into
the system View menu; ⌘R and the .toggleReadingMode notification
are unchanged. Hosted test pins exactly one View-titled menu.

Closes #84
This commit is contained in:
AlexKucera committed 2026-10-08 21:30:59 +02:00
1 parent 4e8865e660
commit 997607b9d3
3 files changed
+14 -2

No files matched your search

+2 -2
View File
@@ -84,8 +84,8 @@ struct MuseionApp: App {
CommandGroup(after: .textEditing) {
EditSpellingToggle(gate: gate)
}
// #68: View menu reading toggle — reaches the visible editor.
CommandMenu("View") {
// #84: joins the system View menu — CommandMenu("View") would add a second one beside it.
CommandGroup(after: .toolbar) {
Button("Toggle Reading Mode") {
NotificationCenter.default.post(name: .toggleReadingMode, object: nil)
}