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>
This commit is contained in:
parent
9d690b0beb
commit
17a2726e64
@ -164,8 +164,8 @@ var LoginManagerSystemd = class extends Signals.EventEmitter {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const [result] = await this._proxy.CanRebootToBootLoaderMenuAsync();
|
const [result] = await this._proxy.CanRebootToBootLoaderMenuAsync();
|
||||||
needsAuth = result[0] === 'challenge';
|
needsAuth = result === 'challenge';
|
||||||
canRebootToBootLoaderMenu = needsAuth || result[0] === 'yes';
|
canRebootToBootLoaderMenu = needsAuth || result === 'yes';
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
canRebootToBootLoaderMenu = false;
|
canRebootToBootLoaderMenu = false;
|
||||||
needsAuth = false;
|
needsAuth = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user