Skip to content

Apply the checked preset again on click and hotkey - #216

Merged
didriksg merged 1 commit into
mainfrom
investigate-preset-reset-6c353924
Oct 10, 2026
Merged

didriksg merged 1 commit into
mainfrom
investigate-preset-reset-6c353924

Conversation

@didriksg

Copy link
Copy Markdown
Owner

A click or hotkey on the checked preset did nothing. The checkmark only goes off when Crisp itself changes a display, so after a change made somewhere else (System Settings, or macOS putting back a stored arrangement) the preset could not be applied again until something else in Crisp was touched. #212 hit this with the arrangement.

Now the click and the hotkey always apply the preset. A preset that already matches changes nothing: resolution and HDR are skipped when they match, brightness and Image Adjustment fade to the value they already have, and an arrangement write with the same origins is a no-op. I checked that last one with a probe. It fires no display reconfiguration callback, and the screen did not flash.

I tested on 1.7.0 and on this change with a real external monitor. After a move from outside Crisp, the 1.7.0 row stayed checked and a click did nothing. With this change, one click put the monitor back, and a click when nothing was different gave no flash. Crisp's own Arrange Displays drag already clears the checkmark in 1.7.0, so the reporter's exact path is not reproduced here, but this covers it either way. I did not run the hotkey live: it goes through the same apply call as the row, behind the same guard.

Refs #212

A click or hotkey on the checked preset did nothing. The checkmark only goes off when Crisp itself changes a display, so after a change made elsewhere (System Settings, macOS putting back a stored arrangement) the preset could not be applied again until something else in Crisp was touched (#212).

Applying a preset that already matches changes nothing: resolution and HDR are skipped when they match, the arrangement write leaves the displays where they are, and brightness and Image Adjustment fade to the value they already have.
@didriksg
didriksg merged commit 57bc136 into main Oct 10, 2026
2 checks passed
@didriksg
didriksg deleted the investigate-preset-reset-6c353924 branch October 10, 2026 13:50
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