瀏覽代碼

allow disabling settings for regular saves

Gildas 1 年之前
父節點
當前提交
2b79acee3d
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/ui/bg/ui-options.js

+ 2 - 0
src/ui/bg/ui-options.js

@@ -897,6 +897,8 @@ async function refresh(profileName) {
 	optionElement = document.createElement("option");
 	optionElement.value = DISABLED_PROFILE_NAME;
 	optionElement.textContent = browser.i18n.getMessage("profileDisabled");
+	ruleEditProfileInput.appendChild(optionElement.cloneNode(true));
+	ruleProfileInput.appendChild(optionElement.cloneNode(true));
 	ruleAutoSaveProfileInput.appendChild(optionElement);
 	ruleEditAutoSaveProfileInput.appendChild(optionElement.cloneNode(true));
 	const rulesDataElement = rulesElement.querySelector(".rules-data");