Akuse icon indicating copy to clipboard operation
Akuse copied to clipboard

State improvements + QoL additions

Open 0x96EA opened this issue 8 months ago • 0 comments

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

Screenshot 2024-06-16 at 03 22 14

Skip Intro button moved to the left and Picture in picture button on the right


Screenshot 2024-06-16 at 03 22 33

Picture in picture on


Screenshot 2024-06-16 at 03 22 43

Picture in picture with mouse hovered over it


0x96EA avatar Jun 15 '24 17:06 0x96EA