Normal Restart dialog is displayed when "Restart & Update" is clicked in gnome-software sometimes
On GNOME Shell 44.5:
Sometimes restartDialogContent
dialog was displayed instead of restartUpdateDialogContent
dialog, when "Restart & Update"
is clicked in gnome-software.
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);
},
checkBoxText: C_('checkbox', 'Install pending software updates'),
showBatteryWarning: true,
confirmButtons: [{
signal: 'ConfirmedReboot',
label: C_('button', 'Restart'),
}],
iconName: 'view-refresh-symbolic',
showOtherSessions: true,
};
const restartUpdateDialogContent = {
subject: C_('title', 'Restart & Install Updates'),
description(seconds) {
return ngettext(
'The system will automatically restart and install updates in %d second.',
'The system will automatically restart and install updates in %d seconds.',
seconds).format(seconds);
},
showBatteryWarning: true,
confirmButtons: [{
signal: 'ConfirmedReboot',
label: C_('button', 'Restart & Install'),
}],
unusedFutureButtonForTranslation: C_('button', 'Install & Power Off'),
unusedFutureCheckBoxForTranslation: C_('checkbox', 'Power off after updates are installed'),
iconName: 'view-refresh-symbolic',
showOtherSessions: true,
};