-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change the relation between selectedProfile and active profile
- Profiles.vue stored selectedProfile ("selected in the UI from the list of available profiles") internally - Sometimes when the selectedProfile changed, activeProfile (stored in Profile.ts and Vuex) was updated, and sometimes not. Sometimes the last selected profile setting in persistent storage was updated and sometimes not - This was changed so that updating the selectedProfile always updates activeProfile and the persistent setting. I assume this is more correct behaviour, if not for any other reason, then to make the behaviour consistent and predictable - One exception to this is the temporary folder when renaming a profile is not saved to persitent settings - One issue with the approach is that the synchronous setter method now calls an async dispatch operation. I tested all the flows I could think of, and they all worked fine - Fixed an issue where the selected profile was no longer highlighted in the profile list after it was renamed
- Loading branch information
Showing
2 changed files
with
21 additions
and
22 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