forked from runelite/runelite
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Even though the web service v2 to v3 migration names the $rsprofile correctly, profiles created since the addition of the v3 api were never named. Commonly, this caused a duplication of profile -1. During profile sync, the client would apply the remote profile name "" to $rsprofile, and then later recreate $rsprofile due to no profile with the name existing. The config manager rsProfile was then this newly created $rsProfile, so the disk storage of the profile has been in the correct location. The "" profile then shows up in the profile panel, and deleting it would then delete both it and the $rsprofile profile - causing the config manager to recreate it due to having lost its active profile. This detects and removes duplicate profiles, and corrects the name of the rsprofile profile. I've also included the profile name in the config patch, so edits to the profile and new rsprofiles always have the correct name. This also fixes trying to sync newly created profiles with no settings, which previously 400d due to posting a null patch. This caused the profile to not really be synced and be considered "lost" at the next profile sync.
- Loading branch information
Showing
2 changed files
with
47 additions
and
14 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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