From bdc81fb4a6fcb798a661ea416139cd0235b9abf8 Mon Sep 17 00:00:00 2001 From: baku Date: Sat, 18 Feb 2017 15:53:45 +0100 Subject: [PATCH] Banking to Finance --- index.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/index.js b/index.js index 357fc1c..4876524 100644 --- a/index.js +++ b/index.js @@ -77,6 +77,17 @@ const ContainerService = { }); ss.storage.savedConfiguration = object; + + // Maybe rename the Banking container. + if (prefService.get("privacy.userContext.enabled") !== true) { + const identity = ContextualIdentityService.getIdentityFromId(3); + if (identity && identity.l10nID === "userContextBanking.label") { + ContextualIdentityService.update(identity.userContextId, + "Finance", + identity.icon, + identity.color); + } + } } // Enabling preferences @@ -844,6 +855,9 @@ const ContainerService = { } }); + // Note: We cannot go back renaming the Finance identity back to Banking: + // the locale system doesn't work with renamed containers. + // Restore the customizable container panel. const widget = CustomizableWidgets.find(widget => widget.id === "containers-panelmenu"); if (widget) {