Reload member device list when they change

This commit is contained in:
miruka
2020-07-08 17:26:52 -04:00
parent 8771ae2aae
commit 963b022f3d
5 changed files with 27 additions and 1 deletions

View File

@@ -132,4 +132,13 @@ HListView {
Component.onCompleted: loadDevices()
Keys.onEscapePressed: stackView.pop()
Connections {
target: py.eventHandlers
function onDeviceUpdateSignal(forAccount) {
if (forAccount === profile.userId) profile.loadDevices()
}
}
}