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:
Florian Müllner 2020-07-01 16:49:17 +02:00 committed by Florian Müllner
parent 72a8522a10
commit 6edd3c4b93

View File

@ -80,13 +80,15 @@ const shutdownDialogContent = {
const restartDialogContent = { const restartDialogContent = {
subject: C_("title", "Restart"), subject: C_("title", "Restart"),
subjectWithUpdates: C_('title', 'Install Updates & Restart'),
description(seconds) { description(seconds) {
return ngettext( return ngettext(
'The system will restart automatically in %d second.', 'The system will restart automatically in %d second.',
'The system will restart automatically in %d seconds.', 'The system will restart automatically in %d seconds.',
seconds).format(seconds); seconds).format(seconds);
}, },
showBatteryWarning: false, checkBoxText: C_('checkbox', 'Install pending software updates'),
showBatteryWarning: true,
confirmButtons: [{ confirmButtons: [{
signal: 'ConfirmedReboot', signal: 'ConfirmedReboot',
label: C_('button', 'Restart'), label: C_('button', 'Restart'),