Repository navigation
Change or forget the saved slicer from Settings - #175
Merged
vycdev merged 2 commits intoNov 19, 2026
Merged
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
The only way to change the slicer that Open in Slicer uses was Choose Slicer in the 3D download menu. That menu is disabled until a model is built, and confirming the chooser from there also exports the model and launches the slicer, so the saved slicer could not be switched without opening a model. The desktop Settings dialog now has an Open in Slicer row: - It shows the saved choice: "Ask every time", "System default", or the slicer's name with its path. It works with no image or model loaded. - Change closes Settings and opens the existing SlicerChooserDialog in a save-only mode. Its confirm button reads Save and only stores the selected slicer (detected, browsed, or the system default); nothing is exported or opened. The "Always use this slicer" switch is hidden in this mode because the choice is always saved. - Forget clears the saved choice, so the next Open in Slicer asks again. Focus moves to Change because the Forget button disappears. useSlicerChoice keeps owning the preference (kromacut:desktop-slicer), so the download menu and Settings stay in sync without new storage. Chooser requests carry a saveOnly flag, and onChangeSavedSlicer/onForgetSlicer are passed to Header only in the desktop app. The new Settings and chooser strings, the remember hint (which now points to Settings as well) and the export guide's Open in Slicer paragraph are updated in all 12 languages. Unreleased changelog entry under Added. Tests: new @smoke e2e cases check that the browser Settings dialog has no slicer row, and that desktop Settings saves a detected, browsed, or system-default slicer without exporting, cancels, forgets, and that the download menu follows a choice made or forgotten in Settings. Closes vycdev#173
The slicer chooser has no trigger, so closing it after Change in Settings left focus on the page body. It now returns focus to the element that was focused when it opened, and Change hands focus to the Settings button first, so focus returns there even when the click did not focus anything (WebKit, as on macOS). - Change and Forget are described by the row's title and current slicer, and a truncated slicer name shows in full as a tooltip. - The remember hint names Settings as a separate place to change the slicer, instead of reading as if Choose Slicer were in Settings (en, de, es, fr, it, pt-PT, ro, uk). - The Settings e2e test now saves once with a model built, so an accidental export on Save fails the final call count. It also checks focus after Cancel, Escape (including a click that focuses nothing) and Save, that Browse from Settings keeps the saved slicer (vycdev#176), and that Open in Slicer asks again after Forget. Co-Authored-By: Claude Opus 5.5 <[email protected]>
vycdev
force-pushed
the
feat/issue-173-slicer-settings
branch
from
November 19, 2026 16:41
ea37f5c to
82ed1af
Compare
This was referenced Nov 19, 2026
This was referenced Nov 19, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Right now the only way to change the slicer that Open in Slicer uses is Choose Slicer… in the 3D download menu. That menu stays disabled until a model is built, and confirming the chooser from there also exports the model and launches the slicer. This adds the Settings row described in #173, so you can switch or forget the saved slicer without opening a model.
What changed
Settings (
src/components/Header.tsx, desktop app only)SlicerChooserDialog.Chooser in save mode (
SlicerChooserDialog,useSlicerChoice)saveOnlyflag. Opened from Settings, the description reads "Choose the app that Open in Slicer opens models with." and the confirm button reads Save (data-testid="slicer-save"). It saves the selected slicer (detected, browsed, or System default) and doesn't export or open anything.useSlicerChoiceandkromacut:desktop-slicer, so it needs no new storage or migration. The download menu and Settings read the same state, so a change in one shows up in the other immediately. The browser build passes no slicer props toHeaderand shows no row.Strings, docs, changelog
src/docs/generating-exporting-output.mdand the 11 translations) now explains the Settings row, Change and Forget.Closes #173
Tests
tests/e2e/open-in-slicer.spec.ts,@smoke):buildModelis split intoopenApp+buildLoadedModelso the new test can open Settings before any model exists. The existing tests are unchanged.npm run lint,npx tsc -b,npm run check:i18n,npm run test:docs,npm run test:i18n, and the fullopen-in-slicer.spec.ts(6 passed against a fresh production build).Maintainer follow-up
Rebased onto
developafter #176 (the only conflict wasCHANGELOG.md), plus one commit (82ed1af):Proof: the new focus assertions fail without the fix, and an injected export-on-Save makes the final call count fail (2 vs 1). Locally,
npm ci, lint, build,npm test,check:e2e,check:i18n,test:i18n, andtest:docspass, andtest:e2e:allpasses every suite except one@smoketest,image-decode-reuse.spec.ts:177, which also fails ondevelop(7 of 20 runs).Council review
Rounds: 2