mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-06-16 13:34:04 +08:00
36767045ce
Fix the issue where duplicated providers were being sorted to the end of the list instead of appearing directly below the original provider. - Calculate new sortIndex as original sortIndex + 1 - Batch update sortIndex of subsequent providers to make room for the new provider - Only perform sortIndex manipulation if the original provider has a sortIndex - Add error handling for sortIndex update failures - Abort duplication if sortIndex update fails to maintain consistency The duplicated provider will now appear immediately below the original provider in the list, maintaining the expected user experience.
36767045ce
·
2025-10-24 13:02:07 +08:00
History