Toolkit - Fix throws an error from Create a New Profile

Issue #531
This commit is contained in:
janekptacijarabaci 2018-06-23 15:03:07 +02:00 • committed by Roy Tam
commit b1b86c587c

View file

@ -96,13 +96,15 @@ function chooseProfileFolder()
dirChooser.show(); dirChooser.show();
newProfileRoot = dirChooser.file; newProfileRoot = dirChooser.file;
// Disable the "Default Folder..." button when the default profile folder if (newProfileRoot) {
// was selected manually in the File Picker. // Disable the "Default Folder..." button when the default profile folder
document.getElementById("useDefault").disabled = // was selected manually in the File Picker.
(newProfileRoot.parent.equals(gDefaultProfileParent)); document.getElementById("useDefault").disabled =
(newProfileRoot.parent.equals(gDefaultProfileParent));
gProfileRoot = newProfileRoot; gProfileRoot = newProfileRoot;
updateProfileDisplay(); updateProfileDisplay();
}
} }
// Checks the current user input for validity and triggers an error message accordingly. // Checks the current user input for validity and triggers an error message accordingly.