[gnome-shell] endSessionDialog: Support updates in restart dialog
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] endSessionDialog: Support updates in restart dialog
- Date: Mon, 10 Aug 2020 15:40:40 +0000 (UTC)
commit 6edd3c4b932935d4a18f9299b7e0078326ae68ef
Author: Florian Müllner <fmuellner gnome org>
Date: Wed Jul 1 16:49:17 2020 +0200
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
js/ui/endSessionDialog.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/js/ui/endSessionDialog.js b/js/ui/endSessionDialog.js
index b1a36d8cd1..263bea3241 100644
--- a/js/ui/endSessionDialog.js
+++ b/js/ui/endSessionDialog.js
@@ -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'),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]