mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
don't switch activity on startup
This commit is contained in:
parent
69a2673936
commit
0c92d4d09b
1 changed files with 6 additions and 5 deletions
|
|
@ -50,12 +50,13 @@ Item {
|
||||||
height: 10
|
height: 10
|
||||||
cacheItemCount: 999//count
|
cacheItemCount: 999//count
|
||||||
delegate: Item {
|
delegate: Item {
|
||||||
Component.onCompleted: {
|
|
||||||
activityModel.setCurrentActivity(model.id, function(){});
|
|
||||||
}
|
|
||||||
Connections {
|
Connections {
|
||||||
target: model
|
target: activitiesRepresentation
|
||||||
onCurrentChanged: activityModel.setCurrentActivity(model.id, function(){});
|
onCurrentIndexChanged: {
|
||||||
|
if (index == activitiesRepresentation.currentIndex) {
|
||||||
|
activityModel.setCurrentActivity(model.id, function(){});
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue