Revert "Use QML WorkerScript for loading and updating models"
This reverts commit d8fd1ff3dd
.
This commit is contained in:
parent
ab4dfc611b
commit
4a0b3f1b12
6 changed files with 33 additions and 126 deletions
|
@ -25,13 +25,9 @@ import 'util.js' as Util
|
|||
ListModel {
|
||||
id: podcastListModel
|
||||
|
||||
property var worker: ModelWorkerScript {
|
||||
id: modelWorker
|
||||
}
|
||||
|
||||
function reload() {
|
||||
py.call('main.load_podcasts', [], function (podcasts) {
|
||||
modelWorker.updateModelFrom(podcastListModel, podcasts);
|
||||
Util.updateModelFrom(podcastListModel, podcasts);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue