LoliSnatcher_Droid
LoliSnatcher_Droid copied to clipboard
[bug] Restoring a backup does not restore tabs
Don't know why, but when restoring a backup, tabs are never restored. Simply add any tab, create a backup, remove all the tabs and restore the backup. Tabs won't be restored (but they are included in the backup database).
Oh, I didn't think about running session restore when restoring a backup, will fix that in next release.
Edit: But on the other hand is that a wanted behaviour? maybe I'll also add an alert asking if the user wants that to happen
Well, I was experimenting with a python script that converts backups from Animeboxes to this apps db for restoring (issue https://github.com/NO-ob/LoliSnatcher_Droid/issues/2). So I wanted to restore pins from animeboxes as tabs here (don't know if this app has something similar other than tabs). I also found out that favorites won't show up as favorited (with hearts) and can still be added as favorite, thus duplicating them. But that probably was a mistake on my side (maybe invalid booru name or url or something), so take that with a grain of salt.
Also also, restoring a big backup (the biggest I tried was 130Mb) crashes the app 🤣
Should work now after 2.3 (currently will force an app restart after a db restore, will make a better flow for this and add if user wants to restore tabs or not in a future version)