mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 00:08:39 +09:00
[WebExAM] Properly handle the add-on name in case it's localized
This commit is contained in:
parent
f61fb76066
commit
756f56126c
1 changed files with 7 additions and 3 deletions
|
|
@ -5663,7 +5663,7 @@ class AddonInstall {
|
|||
this.updateAddonURIs();
|
||||
|
||||
this.addon._install = this;
|
||||
this.name = this.addon.selectedLocale.name;
|
||||
this.name = this.addon.selectedLocale.name || this.addon.defaultLocale.name;
|
||||
this.type = this.addon.type;
|
||||
this.version = this.addon.version;
|
||||
|
||||
|
|
@ -6690,8 +6690,9 @@ function createUpdate(aCallback, aAddon, aUpdate) {
|
|||
} else {
|
||||
install = new DownloadAddonInstall(aAddon._installLocation, url,
|
||||
aUpdate.updateHash, aAddon, null,
|
||||
aAddon.selectedLocale.name, aAddon.type,
|
||||
aAddon.icons, aUpdate.version);
|
||||
aAddon.selectedLocale.name ?
|
||||
aAddon.selectedLocale.name : aAddon.defaultLocale.name,
|
||||
aAddon.type, aAddon.icons, aUpdate.version);
|
||||
}
|
||||
try {
|
||||
if (aUpdate.updateInfoURL)
|
||||
|
|
@ -7986,6 +7987,9 @@ PROP_LOCALE_SINGLE.forEach(function(aProp) {
|
|||
if (aProp == "creator")
|
||||
return result ? new AddonManagerPrivate.AddonAuthor(result) : null;
|
||||
|
||||
if (aProp == "name")
|
||||
return result ? result : addon.defaultLocale.name;
|
||||
|
||||
return result;
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue