Explorar el Código

disable profiles input if it contains one entry only

Gildas hace 7 años
padre
commit
f183751f28
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      extension/ui/bg/ui-options.js

+ 1 - 0
extension/ui/bg/ui-options.js

@@ -432,6 +432,7 @@
 				ruleEditAutoSaveProfileInput.appendChild(optionElement.cloneNode(true));
 			}
 		});
+		profileNamesInput.disabled = profileNamesInput.options.length == 1;
 		optionElement = document.createElement("option");
 		optionElement.value = DISABLED_PROFILE_NAME;
 		optionElement.textContent = browser.i18n.getMessage("profileDisabled");