Migrate to using gpodder-ui-qml common glue code

This commit is contained in:
Thomas Perl 2014-01-31 16:18:56 +01:00
parent c4253df569
commit 2ef56438b6
8 changed files with 15 additions and 95 deletions

View file

@ -21,16 +21,14 @@
import QtQuick 2.0
import Sailfish.Silica 1.0
import 'util.js' as Util
import 'common/util.js' as Util
Page {
id: podcastsPage
function reload() {
pgst.ready = false;
py.call('main.load_podcasts', [], function (podcasts) {
Util.updateModelFrom(podcastListModel, podcasts);
pgst.ready = true;
});
}
@ -107,7 +105,7 @@ Page {
}
ViewPlaceholder {
enabled: podcastListModel.count == 0 && pgst.ready
enabled: podcastListModel.count == 0 && py.ready
text: 'No subscriptions'
}
}