Skip to content

Export Todo sidebar width units - #1796

Merged
rxhanson merged 1 commit into
rxhanson:mainfrom
offyotto:export-todo-sidebar-width-unit
Jul 22, 2026
Merged

rxhanson merged 1 commit into
rxhanson:mainfrom
offyotto:export-todo-sidebar-width-unit

Conversation

@offyotto

Copy link
Copy Markdown
Contributor

When the Todo sidebar width unit is set to percent, exporting configuration and reimporting it silently reverts the unit to pixels, because Defaults.array includes todoSidebarWidth but not todoSidebarWidthUnit, so the unit is never written to or read from the config file.

This adds todoSidebarWidthUnit to Defaults.array immediately after todoSidebarWidth so the unit is exported and restored alongside the width. All other export behavior is unchanged.

Test: xcodebuild test -project Rectangle.xcodeproj -scheme Rectangle -destination 'platform=macOS' -only-testing:RectangleTests/DefaultsExportTests (testTodoSidebarWidthUnitInExportArray fails before the change and passes after).

@rxhanson
rxhanson merged commit 8db3e8e into rxhanson:main Jul 22, 2026
@rxhanson

Copy link
Copy Markdown
Owner

Thanks!

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.

2 participants