Skip to content

Fix command menu crash from Bundle.module fatalError - #370

Merged
jasPreMar merged 1 commit into
mainfrom
jasPreMar/fix-commandmenu-crash
Apr 6, 2026
Merged

Fix command menu crash from Bundle.module fatalError#370
jasPreMar merged 1 commit into
mainfrom
jasPreMar/fix-commandmenu-crash

Conversation

@jasPreMar

Copy link
Copy Markdown
Owner

Summary

  • Removes Bundle.module call from SettingsMenuButton.loadTemplateIcon() that was added in Replace settings menu with quick toggle switches #368
  • The SPM-generated Bundle.module accessor calls fatalError when running as a .app bundle because it looks for the resource bundle at This.app/This_This.bundle instead of This.app/Contents/Resources/This_This.bundle
  • The existing Bundle.main fallbacks already handle icon loading correctly for both debug and app bundles

Test plan

  • swift run ThisTests — 102 passed, 0 failed
  • Build with make run and open the command menu — should no longer crash

🤖 Generated with Claude Code

…le (#370)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jasPreMar
jasPreMar merged commit 8443e38 into main Apr 6, 2026
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