Code Review
/
apps
/
hvac.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Languages changing depending on identity logged in
[apps/hvac.git]
/
app
/
api
/
Binding.qml
diff --git
a/app/api/Binding.qml
b/app/api/Binding.qml
index
93da6f4
..
673cfdd
100644
(file)
--- a/
app/api/Binding.qml
+++ b/
app/api/Binding.qml
@@
-62,6
+62,10
@@
WebSocket {
root.statusString = "Bad return value, binding probably not installed"
break
case MessageId.event:
root.statusString = "Bad return value, binding probably not installed"
break
case MessageId.event:
+ if (json[1] == "hvac/language")
+ console.log("HVAC event received: ",json[2])
+ ApplicationWindow.root.translator.language = json[2].data
+ root.statusString = "Language changed to "+language
break
}
}
break
}
}