js/gdm/util: Rename fingerprint device into devicePath

It's just the dbus object path, so let's not be confused by that.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2267>
This commit is contained in:
Marco Trevisan (Treviño) 2024-02-28 21:52:55 +01:00
parent d5ca108a65
commit efb52899f5

View File

@ -355,11 +355,11 @@ export class ShellUserVerifier extends Signals.EventEmitter {
return;
}
const [device] = await this._fprintManager.GetDefaultDeviceAsync(
const [devicePath] = await this._fprintManager.GetDefaultDeviceAsync(
Gio.DBusCallFlags.NONE, this._cancellable);
const fprintDeviceProxy = new FprintDeviceProxy(Gio.DBus.system,
'net.reactivated.Fprint',
device);
devicePath);
const fprintDeviceType = fprintDeviceProxy['scan-type'];
this._fingerprintReaderType = fprintDeviceType === 'swipe'