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,6 +96,7 @@ function chooseProfileFolder()
dirChooser.show(); dirChooser.show();
newProfileRoot = dirChooser.file; newProfileRoot = dirChooser.file;
if (newProfileRoot) {
// Disable the "Default Folder..." button when the default profile folder // Disable the "Default Folder..." button when the default profile folder
// was selected manually in the File Picker. // was selected manually in the File Picker.
document.getElementById("useDefault").disabled = document.getElementById("useDefault").disabled =
@ -103,6 +104,7 @@ function chooseProfileFolder()
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.