Banking to Finance
This commit is contained in:
parent
e1bb634f10
commit
bdc81fb4a6
1 changed files with 14 additions and 0 deletions
14
index.js
14
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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue