Bug 1286930 - Allow the About dialog to show the application update UI even if the separate Update Available window is shown. r=rstrong

MozReview-Commit-ID: 1jUyLx4KsZG

--HG--
extra : rebase_source : fe2e29b29fa50e21f3c426f51e2504b9095c4812
This commit is contained in:
Jared Wein 2016-07-14 15:22:11 -04:00
Родитель 6798f02654
Коммит 2eb1cdae82
1 изменённых файлов: 6 добавлений и 3 удалений

Просмотреть файл

@ -28,9 +28,12 @@ function appUpdater()
{ {
this.updateDeck = document.getElementById("updateDeck"); this.updateDeck = document.getElementById("updateDeck");
// Hide the update deck when there is already an update window open to avoid // Hide the update deck when the update window is already open and it's not
// syncing issues between them. // already applied, to avoid syncing issues between them. Applied updates
if (Services.wm.getMostRecentWindow("Update:Wizard")) { // don't have any information to sync between the windows as they both just
// show the "Restart to continue"-type button.
if (Services.wm.getMostRecentWindow("Update:Wizard") &&
!this.isApplied) {
this.updateDeck.hidden = true; this.updateDeck.hidden = true;
return; return;
} }