mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-05-04 08:34:07 +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 => {
|
$TDP.checkFileExists(this.$token, configFile).then(exists => {
|
||||||
if (!exists){
|
if (!exists){
|
||||||
loadConfigObject(null);
|
loadConfigObject(null);
|
||||||
|
$TDP.writeFile(this.$token, configFile, JSON.stringify(this.defaultConfig));
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
$TDP.readFile(this.$token, configFile, true).then(contents => {
|
$TDP.readFile(this.$token, configFile, true).then(contents => {
|
||||||
|
Loading…
Reference in New Issue
Block a user