Revert "loginDialog: Better handle setting the active session"
This reverts commit 681861c8c7
.
https://bugzilla.gnome.org/show_bug.cgi?id=740142
This commit is contained in:
parent
bb4e6fd2da
commit
ee360d8749
@ -323,15 +323,13 @@ const SessionMenuButton = new Lang.Class({
|
||||
}
|
||||
},
|
||||
|
||||
activeSessionChanged: function(sessionId) {
|
||||
setActiveSession: function(sessionId) {
|
||||
if (sessionId == this._activeSessionId)
|
||||
return;
|
||||
|
||||
this._activeSessionId = sessionId;
|
||||
this._updateOrnament();
|
||||
},
|
||||
|
||||
setActiveSession: function(sessionId) {
|
||||
this.emit('session-activated', this._activeSessionId);
|
||||
},
|
||||
|
||||
@ -790,7 +788,7 @@ const LoginDialog = new Lang.Class({
|
||||
},
|
||||
|
||||
_onDefaultSessionChanged: function(client, sessionId) {
|
||||
this._sessionMenuButton.activeSessionChanged(sessionId);
|
||||
this._sessionMenuButton.setActiveSession(sessionId);
|
||||
},
|
||||
|
||||
_shouldShowSessionMenuButton: function() {
|
||||
|
Loading…
Reference in New Issue
Block a user