diff options
Diffstat (limited to 'x11/gnome-shell/files/patch-js_ui_endSessionDialog.js')
-rw-r--r-- | x11/gnome-shell/files/patch-js_ui_endSessionDialog.js | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/x11/gnome-shell/files/patch-js_ui_endSessionDialog.js b/x11/gnome-shell/files/patch-js_ui_endSessionDialog.js new file mode 100644 index 000000000000..94b8450f16e6 --- /dev/null +++ b/x11/gnome-shell/files/patch-js_ui_endSessionDialog.js @@ -0,0 +1,36 @@ +--- js/ui/endSessionDialog.js.orig 2025-04-13 15:04:25 UTC ++++ js/ui/endSessionDialog.js +@@ -233,8 +233,6 @@ class EndSessionDialog extends ModalDialog.ModalDialog + }); + + this._loginManager = LoginManager.getLoginManager(); +- this._canRebootToBootLoaderMenu = false; +- this._getCanRebootToBootLoaderMenu().catch(logError); + + this._userManager = AccountsService.UserManager.get_default(); + this._user = this._userManager.get_user(GLib.get_user_name()); +@@ -452,24 +450,6 @@ class EndSessionDialog extends ModalDialog.ModalDialog + }, + label, + }); +- +- // Add Alt "Boot Options" option to the Reboot button +- if (this._canRebootToBootLoaderMenu && signal === 'ConfirmedReboot') { +- this._rebootButton = button; +- this._rebootButtonAlt = this.addButton({ +- action: () => { +- this.close(true); +- let signalId = this.connect('closed', () => { +- this.disconnect(signalId); +- this._confirmRebootToBootLoaderMenu(); +- }); +- }, +- label: C_('button', 'Boot Options'), +- }); +- this._rebootButtonAlt.visible = false; +- this._capturedEventId = this.connect('captured-event', +- this._onCapturedEvent.bind(this)); +- } + } + } + |