1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-04-24 15:15:49 +02:00

Make sure the edit-design plugin creates a config file on startup

This prevents an issue when importing a profile where the file was
missing.
This commit is contained in:
chylex 2017-04-28 18:35:24 +02:00
parent 5635daf66d
commit 9b314e2953

View File

@ -54,6 +54,7 @@ enabled(){
$TDP.checkFileExists(this.$token, configFile).then(exists => {
if (!exists){
loadConfigObject(null);
$TDP.writeFile(this.$token, configFile, JSON.stringify(this.defaultConfig));
}
else{
$TDP.readFile(this.$token, configFile, true).then(contents => {