making signal and slots use appropriate signals

This makes it so other DataChanged signals don't reset the view as was
happening before.
This commit is contained in:
Chris Cochrun 2023-04-01 07:20:46 -05:00
parent d2f26e4cc0
commit 4296a205a8
2 changed files with 4 additions and 2 deletions

View file

@ -72,7 +72,7 @@ Item {
Connections {
target: SlideMod
function onDataChanged() {
function onActiveChanged() {
if (active) {
previewSlidesList.currentIndex = index;
previewSlidesList.positionViewAtIndex(index, ListView.Center);