endSessionDialog: Support updates in restart dialog
We will split off restart from the existing shutdown dialog, and instead offer it as a separate menu item in the session submenu. But before doing that, make sure that the existing restart dialog exposes the same feature set as power off. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2202
This commit is contained in:
parent
72a8522a10
commit
6edd3c4b93
@ -80,13 +80,15 @@ const shutdownDialogContent = {
|
||||
|
||||
const restartDialogContent = {
|
||||
subject: C_("title", "Restart"),
|
||||
subjectWithUpdates: C_('title', 'Install Updates & Restart'),
|
||||
description(seconds) {
|
||||
return ngettext(
|
||||
'The system will restart automatically in %d second.',
|
||||
'The system will restart automatically in %d seconds.',
|
||||
seconds).format(seconds);
|
||||
},
|
||||
showBatteryWarning: false,
|
||||
checkBoxText: C_('checkbox', 'Install pending software updates'),
|
||||
showBatteryWarning: true,
|
||||
confirmButtons: [{
|
||||
signal: 'ConfirmedReboot',
|
||||
label: C_('button', 'Restart'),
|
||||
|
Loading…
Reference in New Issue
Block a user