mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-04-03 13:02:57 +00:00
Make -ProfileWizard start the newly created profile b=288098 r=ccarlen sr=me
This commit is contained in:
parent
64a16361e5
commit
c7f18c5874
@ -208,9 +208,12 @@ function onFinish()
|
||||
if (window.opener)
|
||||
// Add new profile to the list in the Profile Manager.
|
||||
window.opener.CreateProfile(profileName, gProfileRoot);
|
||||
else
|
||||
else {
|
||||
// Use the newly created Profile.
|
||||
gProfile.currentProfile = profileName;
|
||||
var dialogParams = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock);
|
||||
dialogParams.SetInt(0, 1); //set the newly created profile as the default
|
||||
}
|
||||
|
||||
// Exit the wizard.
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user