mirror of
https://github.com/black7375/Firefox-UI-Fix.git
synced 2025-12-06 02:30:54 -08:00
Make ucUtils.restart() use Services.startup.quit
This commit is contained in:
parent
ea1b66eb09
commit
0178abfc53
1 changed files with 7 additions and 1 deletions
|
|
@ -451,7 +451,13 @@ let _uc = {
|
|||
|
||||
restart: function (clearCache){
|
||||
clearCache && Services.appinfo.invalidateCachesOnRestart();
|
||||
_uc.utils.windows.get()[0].BrowserUtils.restartApplication();
|
||||
let cancelQuit = Cc["@mozilla.org/supports-PRBool;1"].createInstance(Ci.nsISupportsPRBool);
|
||||
Services.obs.notifyObservers(
|
||||
cancelQuit,
|
||||
"quit-application-requested",
|
||||
"restart"
|
||||
);
|
||||
Services.startup.quit( Services.startup.eAttemptQuit | Services.startup.eRestart )
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue