Skip to content

Add a Snap Areas setting for restoring windows resized with Larger or Smaller - #1940

Merged
rxhanson merged 1 commit into
rxhanson:mainfrom
SamuelAdigos:settings-unsnap-restore-size-change
Oct 25, 2026
Merged

rxhanson merged 1 commit into
rxhanson:mainfrom
SamuelAdigos:settings-unsnap-restore-size-change

Conversation

@SamuelAdigos

Copy link
Copy Markdown
Contributor

Fixes #1784.

Problem

Dragging a window that was resized with Larger or Smaller restores the size it had before, because unsnap restore treats size changes like any other Rectangle action. v0.98 added unsnapRestoreFromSizeChange to turn that off, but only as a Terminal command; the issue notes that a UI toggle would come with the new Settings layout.

Fix

  • Add "Also restore windows resized with Larger or Smaller" under "Restore window size when unsnapped" in the Snap Areas tab. It reads and writes the existing unsnapRestoreFromSizeChange default, so nothing changes for anyone who already set it from Terminal.
  • The toggle is disabled while "Restore window size when unsnapped" is off, since it has no effect then. It stays in place instead of hiding, so the tab height does not change.
  • The view model resyncs it after a config import, like the other Snap Areas settings.
  • TerminalCommands.md mentions the new checkbox. Added the Spanish string; other languages fall back to English.

Tests

Added testSizeChangeUnsnapRestoreToggleMatchesDefault: an unset default shows the toggle on, switching it writes the default, and syncDefaults() picks up an imported value. Full suite: 624 passed, 0 failed.

@rxhanson
rxhanson merged commit 6db89eb into rxhanson:main Oct 25, 2026
@rxhanson

Copy link
Copy Markdown
Owner

Thanks!

rxhanson pushed a commit that referenced this pull request Nov 3, 2026
* Add the zh-Hans translation for the Larger/Smaller restore setting

The Snap Areas toggle added in #1940 was still shown in English for
Simplified Chinese users.

Co-Authored-By: Claude Fable 5.1 <[email protected]>

* Complete the Traditional Chinese (zh-Hant) localization

Traditional Chinese covered 191 of the 373 strings. This adds the
missing 182, settles the 13 that were marked as needing review, adds the
ⓘ symbol entry the Simplified catalog already had, and normalizes 19
existing strings for consistency (full-width fraction digits, 半螢幕,
設定, 打開, missing sentence-final 。).
Terminology follows Apple's zh-Hant conventions and the strings already in
the app (視窗, 顯示器, 快速鍵, 選單, 貼齊, 復原, 放到最大), fractions keep the
existing full-width digits, and the action names mirror the structure of
the Simplified set.

Co-Authored-By: Claude Fable 5.1 <[email protected]>

---------

Co-authored-by: Claude Fable 5.1 <[email protected]>
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.

"Make-Smaller" or "Make-Larger" revert when dragging window

2 participants