Demizo / Daily_You

Every day is worth remembering...
GNU General Public License v3.0
127 stars 6 forks source link

Changing storage path removes all entries from app #16

Closed homo-iocus closed 1 year ago

homo-iocus commented 1 year ago

Thanks a lot for this nice application :)

After a fresh installation I've entered some logs. Then I changed the storage paths in the setting and all previously existent logs were gone in the app.

I haven't looked up in the source code yet why this happened, maybe one should just copy and paste the db and images from one storage path to another when the user changes it in the settings.

Demizo commented 1 year ago

I overlooked that this behavior is not intuitive. This is happening because when you set a new folder it looks for a database in that folder, and if there are none it starts fresh. In the case there are none it should copy the database over.

Similar behavior could also be added for setting the image folder to an empty folder. My caution with that is creating a ton of image duplicates.

This will be added to the next update!