LiveSplit / LiveSplitOne

A version of LiveSplit that works on a lot of platforms.
https://one.livesplit.org/
MIT License
243 stars 28 forks source link

Saving current splits on window reload #971

Open vjeux opened 3 weeks ago

vjeux commented 3 weeks ago

Context: I'm using livesplit one to keep track of a long running challenge (I try to solve 400 puzzles that last between a few minutes to an hour each) which works well except for when I close the window, everything is wiped when I reload. Sadly this is a managed computer that requires restarting Chrome fairly frequently and I lose all the current splits.

Proposal: Would it be possible to periodically (every couple of seconds while the timer is running) save the current splits to localstorage and when you load the page, then use localstorage data.

I'm happy to do the implementation as well if someone is able to tell me how to serialize/deserialize the state of livesplit-core.

Thanks!

CryZe commented 3 weeks ago

I actually do have an inprogress implementation for this, so this is definitely something that I want to have and is going to happen. Seems like there wasn't an issue already, at least not in this repository.

vjeux commented 3 weeks ago

@CryZe <3 Anything I can do to help?

CryZe commented 3 weeks ago

I don't think there's currently anything that you can do.

vjeux commented 1 week ago

@CryZe I'm happy to put a $200 bounty if this gets fixed. This is really annoying to lose progress every time I restart Chrome (or my computer).