mirror of https://github.com/FreeTubeApp/FreeTube
daecf944fb
* History: Refactor history module
* Profiles: Refactor profiles module
* IPC: Move channel ids to their own file and make them constants
* IPC: Replace single sync channel for one channel per sync type
* Everywhere: Replace default profile id magic strings with constant ref
* Profiles: Refactor `activeProfile` property from store
This commit makes it so that `activeProfile`'s getter returns
the entire profile, while the related update function only needs
the profile id (instead of the previously used array index)
to change the currently active profile.
This change was made due to inconsistency regarding the active profile
when creating new profiles.
If a new profile coincidentally landed in the current active profile's
array index after sorting, the app would mistakenly change to it
without any action from the user apart from the profile's creation.
Turning the profile id into the selector instead solves this issue.
* Revert "Store: Implement history synchronization between windows"
This reverts commit
|
||
---|---|---|
.. | ||
history.js | ||
index.js | ||
invidious.js | ||
playlists.js | ||
profiles.js | ||
settings.js | ||
sponsorblock.js | ||
subscriptions.js | ||
utils.js | ||
ytdl.js |