messageTray: Clean up variable names
Variable names like "sourceNotificationStackDoneShowing" are too long, and too undescriptive: this one points to a source, not a notification stack that has been done showing.
This commit is contained in:
parent
54a9592e19
commit
176a73f4e9
@ -2768,17 +2768,14 @@ const MessageTray = new Lang.Class({
|
|||||||
this._summaryBoxPointerState = State.HIDDEN;
|
this._summaryBoxPointerState = State.HIDDEN;
|
||||||
this._summaryBoxPointer.bin.child = null;
|
this._summaryBoxPointer.bin.child = null;
|
||||||
|
|
||||||
let sourceNotificationStackDoneShowing = null;
|
|
||||||
if (doneShowingNotificationStack) {
|
if (doneShowingNotificationStack) {
|
||||||
this._summaryBoxPointerItem.doneShowingNotificationStack();
|
let source = this._summaryBoxPointerItem.source;
|
||||||
sourceNotificationStackDoneShowing = this._summaryBoxPointerItem.source;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
this._summaryBoxPointerItem.doneShowingNotificationStack();
|
||||||
this._summaryBoxPointerItem = null;
|
this._summaryBoxPointerItem = null;
|
||||||
|
|
||||||
if (sourceNotificationStackDoneShowing) {
|
if (source.isTransient && !this._reNotifyAfterHideNotification)
|
||||||
if (sourceNotificationStackDoneShowing.isTransient && !this._reNotifyAfterHideNotification)
|
source.destroy(NotificationDestroyedReason.EXPIRED);
|
||||||
sourceNotificationStackDoneShowing.destroy(NotificationDestroyedReason.EXPIRED);
|
|
||||||
if (this._reNotifyAfterHideNotification) {
|
if (this._reNotifyAfterHideNotification) {
|
||||||
this._onNotify(this._reNotifyAfterHideNotification.source, this._reNotifyAfterHideNotification);
|
this._onNotify(this._reNotifyAfterHideNotification.source, this._reNotifyAfterHideNotification);
|
||||||
this._reNotifyAfterHideNotification = null;
|
this._reNotifyAfterHideNotification = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user