mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-15 02:24:50 +02:00
create station wizard: workaround slow fist scrolling of the ListView
This commit is contained in:
@@ -67,6 +67,12 @@ Rectangle {
|
|||||||
|
|
||||||
onItemClicked: {
|
onItemClicked: {
|
||||||
stationCreator.modeIndex = index
|
stationCreator.modeIndex = index
|
||||||
|
|
||||||
|
// FIXME: This is a workaround for the ListView scrolling too slow on the first time
|
||||||
|
// Lets reinitialize the current index to something invalid and back to 0 (what it already is) before scrolling over to page 1
|
||||||
|
stationListView.currentIndex = -1
|
||||||
|
stationListView.currentIndex = 0
|
||||||
|
|
||||||
stationListView.incrementCurrentIndex()
|
stationListView.incrementCurrentIndex()
|
||||||
header.subtitle = modeModel.get(index).headerSubtitle + "..."
|
header.subtitle = modeModel.get(index).headerSubtitle + "..."
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user