[gnome-shell] loginManager: Fix canRebootToBootLoaderMenu() result
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] loginManager: Fix canRebootToBootLoaderMenu() result
- Date: Tue, 6 Sep 2022 21:07:19 +0000 (UTC)
commit 17a2726e643f824f856407a092313d798b3208cd
Author: Florian Müllner <fmuellner gnome org>
Date: Tue Sep 6 16:37:25 2022 +0200
loginManager: Fix canRebootToBootLoaderMenu() result
Since commit a3db9093834, the `result` variable holds the
destructured result of the D-Bus call, not the results array
as previously.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2472>
js/misc/loginManager.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/misc/loginManager.js b/js/misc/loginManager.js
index 6549fe5adc..94d62e8192 100644
--- a/js/misc/loginManager.js
+++ b/js/misc/loginManager.js
@@ -164,8 +164,8 @@ var LoginManagerSystemd = class extends Signals.EventEmitter {
try {
const [result] = await this._proxy.CanRebootToBootLoaderMenuAsync();
- needsAuth = result[0] === 'challenge';
- canRebootToBootLoaderMenu = needsAuth || result[0] === 'yes';
+ needsAuth = result === 'challenge';
+ canRebootToBootLoaderMenu = needsAuth || result === 'yes';
} catch (error) {
canRebootToBootLoaderMenu = false;
needsAuth = false;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]