Get flat SidePane data on Account/Room models sync
QML: Get the data from Python and print it (for now) Also: - Remove useless Model.sortable field, all models/items are sortable - Change SyncId type hint for less mypy complaints - Remove ModelItem.main_key class attributes, useless since last big refactor
This commit is contained in:
@@ -20,6 +20,12 @@ function onCoroutineDone(uuid, result) {
|
||||
|
||||
|
||||
function onModelUpdated(syncId, data, serializedSyncId) {
|
||||
if (serializedSyncId == ["Account"] || serializedSyncId[0] == "Room") {
|
||||
py.callCoro("get_flat_sidepane_data", [], data => {
|
||||
print( JSON.stringify( data, null, 4))
|
||||
})
|
||||
}
|
||||
|
||||
window.modelSources[serializedSyncId] = data
|
||||
window.modelSourcesChanged()
|
||||
}
|
||||
|
Reference in New Issue
Block a user