Do not wait for animation
This commit is contained in:
parent
9088506f62
commit
2b7da73333
|
@ -11,8 +11,6 @@ import "../../../PythonBridge"
|
|||
import "../../../ShortcutBundles"
|
||||
|
||||
Rectangle {
|
||||
readonly property var modelSyncId:
|
||||
[chat.userRoomId[0], chat.userRoomId[1], "events"]
|
||||
|
||||
readonly property alias eventList: eventList
|
||||
readonly property alias contextMenu: contextMenu
|
||||
|
@ -508,6 +506,7 @@ Rectangle {
|
|||
bottomMargin: theme.spacing
|
||||
verticalLayoutDirection: ListView.BottomToTop
|
||||
|
||||
model: ModelStore.get(chat.userRoomId[0], chat.userRoomId[1], "events")
|
||||
delegate: EventDelegate {}
|
||||
|
||||
highlight: Rectangle {
|
||||
|
@ -548,25 +547,6 @@ Rectangle {
|
|||
}
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: pageLoader
|
||||
onRecycled: {
|
||||
eventList.model = null
|
||||
eventList.cacheBuffer = 0
|
||||
updateModelTimer.restart()
|
||||
}
|
||||
}
|
||||
|
||||
Timer {
|
||||
id: updateModelTimer
|
||||
interval: pageLoader.appearAnimation.duration / 2
|
||||
running: true
|
||||
onTriggered: {
|
||||
eventList.model = ModelStore.get(modelSyncId)
|
||||
increaseBufferTimer.restart()
|
||||
}
|
||||
}
|
||||
|
||||
Timer {
|
||||
id: increaseBufferTimer
|
||||
interval: 1000
|
||||
|
|
Loading…
Reference in New Issue
Block a user