oliexdev / openScale

Open-source weight and body metrics tracker, with support for Bluetooth scales
GNU General Public License v3.0
1.66k stars 290 forks source link

Validate backup to import #1037

Open alexanderadam opened 4 months ago

alexanderadam commented 4 months ago

Describe the bug

I want to migrate from openScale 2.5.2 (64) from F-Droid to openScale Pro and it seems that openScale Pro will not complain if the "backup" file is even a backup file. It always says "Imported from /…/file"

To Reproduce

Steps to reproduce the behaviour:

  1. Backup -> Import backup -> Select any file you want — it can even be a JPEG
  2. See the blatant lie "Imported from /…/file" on your screen

Expected behaviour

The response to the user should be helpful and mention it if it wasn't able to import a backup.