Add a Reset Button
kihashi opened this issue · comments
When starting a new game, it would be nice to be able to clear the data without having to mark every item as not collected. It would therefore be useful to have a reset data button with a confirmation dialog.
A simple way to implement this function would be to obtain an export on an empty checklist and invoke the import on it under the hood.
Here's the empty export that generates from my browser:
W1tdLFtdLFtdLFtdLFtdLFtdLFtdLFtdLFtdLFtdLFtdLFtdLFtdLFtdLFtdLFtdLFtdLFtdLFtdLFtdLFtdLFtdLFtdLFtdLFtdLFtdLFtdLFtdLFtdLFtdXQ==
@bladeoflight16 Thanks! For reference, I'm currently working on a full re-write of the application. As part of the re-write, I've completely changed how I store data to better accommodate Inventory (#83).
I think the approach that I am taking for the reset is to simply delete the array of stored data. It isn't relying on a specific structure like the live version, so there's no need to re-initialize it.
I appreciate the input, though!