mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-24 08:07:30 +09:00
[Pale-Moon] addons: replace Application.restart call with Services.startup.quit
This commit is contained in:
parent
16f07caa39
commit
7d223da9ca
1 changed files with 2 additions and 2 deletions
|
|
@ -202,7 +202,7 @@ const gXPInstallObserver = {
|
||||||
label: gNavigatorBundle.getString("addonInstallRestartButton"),
|
label: gNavigatorBundle.getString("addonInstallRestartButton"),
|
||||||
accessKey: gNavigatorBundle.getString("addonInstallRestartButton.accesskey"),
|
accessKey: gNavigatorBundle.getString("addonInstallRestartButton.accesskey"),
|
||||||
callback: function() {
|
callback: function() {
|
||||||
Application.restart();
|
Services.startup.quit(Ci.nsIAppStartup.eAttemptQuit | Ci.nsIAppStartup.eRestart);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -368,7 +368,7 @@ var LightWeightThemeWebInstaller = {
|
||||||
label: gNavigatorBundle.getString("lwthemeNeedsRestart.button"),
|
label: gNavigatorBundle.getString("lwthemeNeedsRestart.button"),
|
||||||
accessKey: gNavigatorBundle.getString("lwthemeNeedsRestart.accesskey"),
|
accessKey: gNavigatorBundle.getString("lwthemeNeedsRestart.accesskey"),
|
||||||
callback: function () {
|
callback: function () {
|
||||||
Application.restart();
|
Services.startup.quit(Ci.nsIAppStartup.eAttemptQuit | Ci.nsIAppStartup.eRestart);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue