Akuse
Akuse copied to clipboard
State improvements + QoL additions
So i went down a rabbit hole to fix the app state not being saved correctly and learned a lot about electron store... Please feel free to choose to use parts of the PR or redo it in a style you want. 😊
I optimized the number of calls that needed to be made to the store and keep the data in a context with a hook for the frontend. Have already seen the performance improvements and the app now "remembers things correctly".
List of changes
- Setup context for interaction with electron-store see
useStorageContext()
- Added PIP button
- Edit: I didn't notice https://github.com/akuse-app/akuse/pull/57 until after I started this PR so please feel free to cherry pick parts of my code etc.
- Fixed memory leaks from the auto update ipc events being emitted but not being cleaned up.
- Updated various useEffect calls
- Fixed adding and removing shows from your list
- Added shortcuts for Skip Intro ('s' key) and PIP ('o key')
Screenshots
Skip Intro button moved to the left and Picture in picture button on the right
Picture in picture on
Picture in picture with mouse hovered over it