try to start an activity before setting current

This commit is contained in:
Marco Martin 2016-10-07 12:53:10 +02:00
parent 3577e59bc0
commit c2eca129af

View file

@ -109,8 +109,10 @@ ColumnLayout {
height: Math.max(label.height, label.height)
onClicked: {
listView.currentIndex = index;
activityModel.setCurrentActivity(model.id, function() {
plasmoid.expanded = false;
activityModel.startActivity(model.id, function() {
activityModel.setCurrentActivity(model.id, function() {
plasmoid.expanded = false;
});
});
}
onPressAndHold: {