1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-12-02 22:49:09 +02:00

minor tweaks

This commit is contained in:
Laurent Cozic
2019-02-23 15:53:14 +00:00
parent b5dff09c28
commit 32a67b9b33
3 changed files with 740 additions and 737 deletions

View File

@@ -16,15 +16,12 @@ class WelcomeUtils {
defaultFolderId: null,
};
const appType = Setting.value('appType');
const folderAssets = welcomeAssets.folders;
const tempDir = Setting.value('resourceDir');
const timestamp = welcomeAssets.timestamp;
for (let i = 0; i < folderAssets.length; i++) {
const folderAsset = folderAssets[i];
const folder = await Folder.save({ title: folderAsset.title + ' (' + appType + ')'});
const folder = await Folder.save({ title: folderAsset.title + ' (' + Setting.appTypeToLabel(Setting.value('appType')) + ')'});
if (!output.defaultFolderId) output.defaultFolderId = folder.id;
}