Repository navigation
dock: reorder widgets from settings in the dock's real order - #4083
Merged
Merged
Conversation
The dock lays out widgets by its saved order, but the settings list showed the widgets array, so the two could disagree and there was no way to reorder there. The list now follows the saved order and can be dragged or moved with Ctrl+Up/Down. Pinned apps move with the widget after them. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
Member
|
/claude review |
Contributor
Claude reviewNo issues found. |
purian23
pushed a commit
that referenced
this pull request
Nov 3, 2026
Co-authored-by: Claude Opus 5.5 <[email protected]> (cherry picked from commit fcfa552)
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.
Description
The dock lays out its widgets by the saved
order(widget ids andpin:<appId>units written when you drag in the dock's edit mode), but Settings › Dock › Apps and widgets listed thewidgetsarray. Once you had dragged something in the dock, the two disagreed, and the settings list could not be reordered at all.The list now shows the dock's real order (
DockConfig.widgetOrder) and is aSettingsReorderList: drag the handle or use Ctrl+Up/Down.DockConfig.reorderWidgetswrites the new sequence to bothwidgetsandorder. Pinned apps keep riding with the widget right after them, so moving the Apps widget keeps its pins in front of it; pins before any other widget move with that widget, and trailing pins stay at the end.tests/dock-units.test.mjs: a matrix forwidgetOrder(saved order vs. none) andreorderWidgets(moving Apps with its pins, interleaved pins, no saved order, a partial id list). Every case also checks thatwidgetOrderreads back the written order. The two failing tests intests/(audio profile list/set) fail on master as well.Type of change
Related issues
None found.
Screenshots / video
Checklist
I18n.tr()with translator context, reusing existing terms where possible (no new strings)make fmt, added/updated tests,make testpasses, andgo mod tidyis clean (no Go changes)make lint-qmlwith no new warningsTested on a v2.0.0-based build on Hyprland: reordering by drag in settings moves the widgets in the dock and survives a shell restart.
DockConfig.jswas also run in Quickshell's JS engine, not only Node.🤖 Generated with Claude Code