[gnome-shell] thunderbolt: fix enroll-failed signal args order
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] thunderbolt: fix enroll-failed signal args order
- Date: Fri, 20 Apr 2018 16:47:21 +0000 (UTC)
commit 0963ccddba8050f4caa6dcb967ff4884d54c702b
Author: Christian Kellner <christian kellner me>
Date: Thu Apr 19 14:13:20 2018 +0200
thunderbolt: fix enroll-failed signal args order
The devices emitted (device, error) while the connected handler
was expecting (error, device). The former is more consistent
with the rest of the code (so change it to device, error).
js/ui/status/thunderbolt.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/js/ui/status/thunderbolt.js b/js/ui/status/thunderbolt.js
index 6f563c1e0..ebd1c3eb1 100644
--- a/js/ui/status/thunderbolt.js
+++ b/js/ui/status/thunderbolt.js
@@ -228,7 +228,7 @@ var AuthRobot = new Lang.Class({
_onEnrollDone(device, error) {
if (error)
- this.emit('enroll-failed', error, device);
+ this.emit('enroll-failed', device, error);
/* TODO: scan the list of devices to be authorized for children
* of this device and remove them (and their children and
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]