Parcourir la source

Update app.js

Lutz Roeder il y a 7 mois
Parent
commit
535fc26470
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      source/app.js

+ 1 - 1
source/app.js

@@ -965,6 +965,7 @@ app.ViewCollection = class {
 app.ConfigurationService = class {
 
     constructor() {
+        this._content = { 'recents': [] };
         const dir = electron.app.getPath('userData');
         if (dir && dir.length > 0) {
             this._file = path.join(dir, 'configuration.json');
@@ -972,7 +973,6 @@ app.ConfigurationService = class {
     }
 
     open() {
-        this._content = { 'recents': [] };
         if (this._file && fs.existsSync(this._file)) {
             const data = fs.readFileSync(this._file, 'utf-8');
             if (data) {