Fix timer setting current AccountsRoomList index
This commit is contained in:
parent
2ff65af6ab
commit
9077ea3925
|
@ -17,6 +17,7 @@ HButton {
|
||||||
readonly property alias additionalInfo: additionalInfo
|
readonly property alias additionalInfo: additionalInfo
|
||||||
readonly property alias rightInfo: rightInfo
|
readonly property alias rightInfo: rightInfo
|
||||||
readonly property alias subtitle: subtitle
|
readonly property alias subtitle: subtitle
|
||||||
|
readonly property alias setCurrentTimer: setCurrentTimer
|
||||||
|
|
||||||
property HMenu contextMenu: HMenu {}
|
property HMenu contextMenu: HMenu {}
|
||||||
|
|
||||||
|
@ -77,9 +78,10 @@ HButton {
|
||||||
|
|
||||||
|
|
||||||
Timer {
|
Timer {
|
||||||
|
id: setCurrentTimer
|
||||||
interval: 100
|
interval: 100
|
||||||
repeat: true
|
repeat: true
|
||||||
// running: true
|
running: true
|
||||||
// Component.onCompleted won't work for this
|
// Component.onCompleted won't work for this
|
||||||
onTriggered: if (shouldBeCurrent) view.currentIndex = model.index
|
onTriggered: if (shouldBeCurrent) view.currentIndex = model.index
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,6 +10,7 @@ HListView {
|
||||||
readonly property var originSource: window.sidePaneModelSource
|
readonly property var originSource: window.sidePaneModelSource
|
||||||
readonly property var collapseAccounts: window.uiState.collapseAccounts
|
readonly property var collapseAccounts: window.uiState.collapseAccounts
|
||||||
readonly property string filter: paneToolBar.roomFilter
|
readonly property string filter: paneToolBar.roomFilter
|
||||||
|
readonly property alias activateLimiter: activateLimiter
|
||||||
|
|
||||||
onOriginSourceChanged: filterLimiter.restart()
|
onOriginSourceChanged: filterLimiter.restart()
|
||||||
onFilterChanged: filterLimiter.restart()
|
onFilterChanged: filterLimiter.restart()
|
||||||
|
|
|
@ -15,6 +15,8 @@ HTileDelegate {
|
||||||
window.uiState.page == "Pages/EditAccount/EditAccount.qml" &&
|
window.uiState.page == "Pages/EditAccount/EditAccount.qml" &&
|
||||||
window.uiState.pageProperties.userId == model.data.user_id
|
window.uiState.pageProperties.userId == model.data.user_id
|
||||||
|
|
||||||
|
setCurrentTimer.running: ! accountRoomList.activateLimiter.running
|
||||||
|
|
||||||
|
|
||||||
Behavior on opacity { HNumberAnimation {} }
|
Behavior on opacity { HNumberAnimation {} }
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,8 @@ HTileDelegate {
|
||||||
window.uiState.pageProperties.userId == model.user_id &&
|
window.uiState.pageProperties.userId == model.user_id &&
|
||||||
window.uiState.pageProperties.roomId == model.data.room_id
|
window.uiState.pageProperties.roomId == model.data.room_id
|
||||||
|
|
||||||
|
setCurrentTimer.running: ! accountRoomList.activateLimiter.running
|
||||||
|
|
||||||
|
|
||||||
Behavior on opacity { HNumberAnimation {} }
|
Behavior on opacity { HNumberAnimation {} }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user