Reload member device list when they change
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -5,6 +5,9 @@ import ".."
|
||||
import "../.."
|
||||
|
||||
QtObject {
|
||||
signal deviceUpdateSignal(string forAccount)
|
||||
|
||||
|
||||
function onExitRequested(exitCode) {
|
||||
Qt.exit(exitCode)
|
||||
}
|
||||
@@ -82,4 +85,9 @@ QtObject {
|
||||
// print("clear", syncId)
|
||||
ModelStore.get(syncId).clear()
|
||||
}
|
||||
|
||||
|
||||
function onDevicesUpdated(forAccount) {
|
||||
deviceUpdateSignal(forAccount)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user