From c7c6a2551dcbb15eeb3fd22ba41e4aeacc5ca472 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Thu, 21 May 2020 23:49:54 +0200 Subject: [PATCH] Fix name of base folder --- webext/js/defaults.js | 1 + webext/js/options_accounts.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/webext/js/defaults.js b/webext/js/defaults.js index d3028dd..1e9e61c 100644 --- a/webext/js/defaults.js +++ b/webext/js/defaults.js @@ -212,6 +212,7 @@ function checkFolderFilters(filters) { if (filter.folder.version === undefined) { folder.version = SysTrayX.version; folder.path = found[0].path; + folder.name = found[0].path.split("/").pop(); filtersChanged = true; } diff --git a/webext/js/options_accounts.js b/webext/js/options_accounts.js index 4f95e50..74620ca 100644 --- a/webext/js/options_accounts.js +++ b/webext/js/options_accounts.js @@ -197,7 +197,7 @@ SysTrayX.Accounts = { accountName: element.accountName, accountId: element.accountId, path: element.path, - name: element.name, + name: element.path.split("/").pop(), version: SysTrayX.version, }) );