Rawns / Reddit-Wallpaper-Changer

Reddit Wallpaper Changer
MIT License
120 stars 51 forks source link

ThumbnailCache folder not created on startup #79

Closed qwertydog closed 6 years ago

qwertydog commented 6 years ago

Hi Paul, I noticed a small issue when installing today. I'm be keen to help out with some bug fixes/new features

The thumbnailCache folder wasn't being created on startup if the folder had been deleted or if the setting already had a valid path.

thumbnailunavailable appdata log.txt

I also notice that when instantiating the Database class to set the RWC.database field, the constructor references the AppDataPath setting to set the dbPath, but is being instantiated before RWC_Load where the AppDataPath setting is actually assigned, possibly the cause of issue #78?

databasecreation dbpath

qwertydog commented 6 years ago

The logger also references the AppDataPath setting in the RWC constructor, which may cause log files to be created in "C:\Logs":

rwcconstructor logger

Rawns commented 6 years ago

Nice fix. Thanks for the corrections. They;ve been merged into the dev branch. :)