mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
EndSessionDialog: don't show other logged in users at log out
We're not killing their session, so it's pointless to show them. https://bugzilla.gnome.org/show_bug.cgi?id=707124
This commit is contained in:
parent
532346ecfb
commit
407a340b2b
1 changed files with 10 additions and 5 deletions
|
|
@ -73,7 +73,8 @@ const logoutDialogContent = {
|
|||
},
|
||||
confirmButtons: [{ signal: 'ConfirmedLogout',
|
||||
label: C_("button", "Log Out") }],
|
||||
iconStyleClass: 'end-session-dialog-logout-icon'
|
||||
iconStyleClass: 'end-session-dialog-logout-icon',
|
||||
showOtherSessions: false,
|
||||
};
|
||||
|
||||
const shutdownDialogContent = {
|
||||
|
|
@ -88,7 +89,8 @@ const shutdownDialogContent = {
|
|||
{ signal: 'ConfirmedShutdown',
|
||||
label: C_("button", "Power Off") }],
|
||||
iconName: 'system-shutdown-symbolic',
|
||||
iconStyleClass: 'end-session-dialog-shutdown-icon'
|
||||
iconStyleClass: 'end-session-dialog-shutdown-icon',
|
||||
showOtherSessions: true,
|
||||
};
|
||||
|
||||
const restartDialogContent = {
|
||||
|
|
@ -101,7 +103,8 @@ const restartDialogContent = {
|
|||
confirmButtons: [{ signal: 'ConfirmedReboot',
|
||||
label: C_("button", "Restart") }],
|
||||
iconName: 'view-refresh-symbolic',
|
||||
iconStyleClass: 'end-session-dialog-shutdown-icon'
|
||||
iconStyleClass: 'end-session-dialog-shutdown-icon',
|
||||
showOtherSessions: true,
|
||||
};
|
||||
|
||||
const restartInstallDialogContent = {
|
||||
|
|
@ -115,7 +118,8 @@ const restartInstallDialogContent = {
|
|||
confirmButtons: [{ signal: 'ConfirmedReboot',
|
||||
label: C_("button", "Restart & Install") }],
|
||||
iconName: 'view-refresh-symbolic',
|
||||
iconStyleClass: 'end-session-dialog-shutdown-icon'
|
||||
iconStyleClass: 'end-session-dialog-shutdown-icon',
|
||||
showOtherSessions: true,
|
||||
};
|
||||
|
||||
const DialogContent = {
|
||||
|
|
@ -553,7 +557,8 @@ const EndSessionDialog = new Lang.Class({
|
|||
this._applications.push(inhibitor);
|
||||
}
|
||||
|
||||
this._loadSessions();
|
||||
if (DialogContent[type].showOtherSessions)
|
||||
this._loadSessions();
|
||||
|
||||
this._updateButtons();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue