Repository navigation
Add launch-at-login settings - #28
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 92d79aa6f0
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if enabled { | ||
| try service.register() |
There was a problem hiding this comment.
Refuse login registration from ejectable app locations
When Juice is opened directly from its DMG and this registration succeeds, SMAppService.mainApp records the mounted app as the login item; after the volume is ejected, the enabled item cannot launch Juice at the next sign-in. The repository already treats direct-from-DMG execution as supported enough to show an install-location instruction for the helper, so this controller should likewise require a stable installed location before registering and direct the user to install the app instead.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 7962475. Enabling launch at login now requires Juice to be under /Applications, reports a clear install instruction otherwise, and has regression coverage.
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 79624755c7
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| window.styleMask = [.titled, .closable, .miniaturizable] | ||
| window.contentMinSize = Self.contentSize | ||
| window.contentMaxSize = Self.contentSize | ||
| let restoredFrame = window.setFrameAutosaveName(autosaveName) |
There was a problem hiding this comment.
Center the settings window when no saved frame exists
setFrameAutosaveName returns whether the autosave name was accepted, not whether a frame was restored. With this unique name it therefore normally returns true even on the first launch, so window.center() is skipped and the new Settings window opens at AppKit's default origin near the screen corner. Check for an existing/restorable saved frame separately before deciding not to center.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 440484d. The presenter now checks setFrameUsingName before configuring autosave, centers only when no saved frame was restored, and the regression test verifies the initial center path is not repeated when the retained window reopens.
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 440484d860
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| .disabled( | ||
| launchAtLogin.isChanging | ||
| || launchAtLogin.requiresApproval) |
There was a problem hiding this comment.
Allow canceling a pending login registration
When registration enters .requiresApproval—including after the user disables Juice in System Settings—isEnabled makes this toggle appear off, but this modifier also disables it. The user therefore cannot invoke setEnabled(false) to unregister the pending login item, leaving Juice permanently registered and showing the approval notice; keep a cancellation path available for this state.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 0a70461. The switch now represents registration state (enabled or awaiting approval), remains interactive while approval is pending, and turning it off unregisters the pending item. Added a regression test for the requiresApproval-to-notRegistered cancellation path; the full 461-test suite passes.
|
@codex review |
|
Codex Review: Didn't find any major issues. Breezy! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Summary
Verification