Skip to content

Add reopenLastProject setting to SettingsStore#158

Open
kirich1409 wants to merge 1 commit intomainfrom
feature/reopen-last-project-setting
Open

Add reopenLastProject setting to SettingsStore#158
kirich1409 wants to merge 1 commit intomainfrom
feature/reopen-last-project-setting

Conversation

@kirich1409
Copy link
Copy Markdown
Contributor

Add reopenLastProject boolean setting with UserDefaults persistence.

Changes:

  • SettingsStore: New @published reopenLastProject property with UserDefaults I/O
  • SettingsView: Toggle in General > Startup section
  • Default value: false
  • Includes accessibility labels

Closes #142

- Add @published reopenLastProject: Bool property to SettingsStore with UserDefaults persistence
- Initialize from UserDefaults with default value of false
- Add "reopenLastProject" key constant
- Add UI toggle in SettingsView General section under Startup
- Includes accessibility labels for both property and UI
Copilot AI review requested due to automatic review settings April 15, 2026 17:29
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new persisted startup preference to the macOS app’s centralized settings store and exposes it in the Settings UI, supporting the Welcome Screen epic’s upcoming “reopen last project” behavior without changing runtime behavior yet.

Changes:

  • Added reopenLastProject: Bool to SettingsStore with UserDefaults persistence (reopenLastProject key, default false).
  • Added a “Reopen Last Project on Launch” toggle to Settings → General → Startup with an accessibility label.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
MacApp/Relay/SettingsStore.swift Adds reopenLastProject published setting, loads from and saves to UserDefaults, and defines the new key.
MacApp/Relay/SettingsView.swift Adds a Startup-section toggle bound to SettingsStore.reopenLastProject with an accessibility label.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

Add reopenLastProject setting to SettingsStore

2 participants