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:
parent
5635daf66d
commit
9b314e2953
@ -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 => {
|
||||
|
Loading…
Reference in New Issue
Block a user