messageTray: Reword a boolean condition

Just so it's a bit easier to understand...
This commit is contained in:
Jasper St. Pierre 2013-12-04 11:22:48 -05:00
parent 079f1e6fff
commit 9d3a109946

View File

@ -2382,7 +2382,7 @@ const MessageTray = new Lang.Class({
} else if (this._notificationState == State.SHOWN) { } else if (this._notificationState == State.SHOWN) {
let expired = (this._userActiveWhileNotificationShown && let expired = (this._userActiveWhileNotificationShown &&
this._notificationTimeoutId == 0 && this._notificationTimeoutId == 0 &&
!(this._notification.urgency == Urgency.CRITICAL) && this._notification.urgency != Urgency.CRITICAL &&
!this._notification.focused && !this._notification.focused &&
!this._pointerInNotification); !this._pointerInNotification);
let mustClose = (this._notificationRemoved || !hasNotifications || expired || this._traySummoned); let mustClose = (this._notificationRemoved || !hasNotifications || expired || this._traySummoned);