summaryrefslogtreecommitdiff
path: root/x11/gnome-shell/files/patch-js_ui_endSessionDialog.js
blob: 94b8450f16e63bf1474d6ccfe8b81b6f4f583bd3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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));
-            }
         }
     }