no-bug: Only set checked attr if value is true on live folder context menu (gh-12882)

This commit is contained in:
Slowlife
2026-03-23 01:11:21 +07:00
committed by GitHub
parent 12b62cb9cf
commit 144741ea68

View File

@@ -78,8 +78,10 @@ class nsZenLiveFoldersUI {
menuItem.setAttribute("data-l10n-id", option.l10nId);
if (option.checked !== undefined) {
menuItem.setAttribute("checked", option.checked);
menuItem.setAttribute("type", option.type ?? "checkbox");
if (option.checked === true) {
menuItem.setAttribute("checked", "true");
}
}
if (option.l10nArgs) {