mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-10-26 01:34:51 +08:00
Installed apps on the apps page can be reordered by dragging the handle that appears at the start of a row on hover, the same way provider cards are sorted. Only the installed section is sortable: where a missing app sits does not matter, and while the first probe has not finished it is not yet known which section a row belongs to. There is a single order for all apps, saved as `appOrder` in the device-level settings.json next to `visibleApps` (not cloud-synced). The sidebar and the app opened by default follow it. Each section shows the order filtered by install state, so an app keeps its relative position when it moves between sections. Apps missing from a saved order, such as ones added in a later version, are inserted after their default predecessor; unknown ids are ignored. The dragged row is kept inside its section's list box, which clips overflow for the rounded corners, so it cannot disappear mid-drag.