37 lines
1.5 KiB
Text
37 lines
1.5 KiB
Text
Index: js/ui/endSessionDialog.js
|
|
--- js/ui/endSessionDialog.js.orig
|
|
+++ js/ui/endSessionDialog.js
|
|
@@ -232,8 +232,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());
|
|
@@ -451,24 +449,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));
|
|
- }
|
|
}
|
|
}
|
|
|