1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-02-01 19:15:01 +02:00

Deskop: Integrated Welcome notes to desktop

This commit is contained in:
Laurent Cozic 2019-02-07 23:27:50 +00:00
parent dd4b46a88b
commit 69b4b4d1f4
4 changed files with 7 additions and 5 deletions

View File

@ -565,9 +565,10 @@ class BaseApplication {
if (!currentFolder) currentFolder = await Folder.defaultFolder();
Setting.setValue('activeFolderId', currentFolder ? currentFolder.id : '');
await WelcomeUtils.createWelcomeItems();
// await this.testing();process.exit();
if (!Setting.value('welcome.wasBuilt')) {
await WelcomeUtils.createWelcomeItems();
Setting.setValue('welcome.wasBuilt', true);
}
return argv;
}

View File

@ -165,6 +165,7 @@ class Setting extends BaseModel {
'resourceService.lastProcessedChangeId': { value: 0, type: Setting.TYPE_INT, public: false },
'searchEngine.lastProcessedChangeId': { value: 0, type: Setting.TYPE_INT, public: false },
'searchEngine.initialIndexingDone': { value: false, type: Setting.TYPE_BOOL, public: false },
'welcome.wasBuilt': { value: false, type: Setting.TYPE_BOOL, public: false },
};
return this.metadata_;

View File

@ -66,7 +66,7 @@ module.exports = {
"folders": [
{
"id": "9bb5d498aba74cc6a047cfdc841e82a1",
"title": "Welcome"
"title": "Welcome!"
}
]
}

View File

@ -90,7 +90,7 @@ async function main() {
const rootFolder = {
id: itemIdFromPath('folder_Welcome'),
title: 'Welcome',
title: 'Welcome!',
};
for (let i = 0; i < filenames.length; i++) {