summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Kellner <christian@kellner.me>2018-04-19 14:13:20 +0200
committerChristian Kellner <christian@kellner.me>2018-04-20 11:27:11 +0200
commit0963ccddba8050f4caa6dcb967ff4884d54c702b (patch)
tree93072ab0b1347164f90b91dde56d2e9f94d38b3f
parentc4e0f6df082aa56f0f94579f2dc31f07b2647853 (diff)
downloadgnome-shell-0963ccddba8050f4caa6dcb967ff4884d54c702b.tar.gz
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).
-rw-r--r--js/ui/status/thunderbolt.js2
1 files changed, 1 insertions, 1 deletions
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