Fix binding loops that was sometimes freezing the app

Fix #294
This commit is contained in:
Carl Schwan
2021-03-17 19:45:03 +01:00
parent 571ee638bd
commit 0289822e6c
2 changed files with 4 additions and 2 deletions

View File

@@ -140,8 +140,9 @@ Item {
// bubble // bubble
QQC2.Control { QQC2.Control {
id: controlContainer id: controlContainer
//Layout.fillWidth: true Layout.fillWidth: true
Layout.maximumWidth: mainColumn.width - Kirigami.Units.gridUnit * 2 - Kirigami.Units.largeSpacing * 2 Layout.maximumWidth: mainColumn.width - Kirigami.Units.gridUnit * 2 - Kirigami.Units.largeSpacing * 2
Layout.preferredHeight: contentItem.implicitHeight
topPadding: 0 topPadding: 0
bottomPadding: 0 bottomPadding: 0
leftPadding: 0 leftPadding: 0

View File

@@ -196,6 +196,7 @@ Kirigami.ScrollablePage {
model: !isLoaded ? undefined : sortedMessageEventModel model: !isLoaded ? undefined : sortedMessageEventModel
onContentYChanged: updateReadMarker() onContentYChanged: updateReadMarker()
onCountChanged: updateReadMarker() onCountChanged: updateReadMarker()
@@ -590,7 +591,7 @@ Kirigami.ScrollablePage {
currentRoom.getPreviousContent(50) currentRoom.getPreviousContent(50)
} }
positionViewAtBeginning() positionViewAtBeginning();
} }
DropArea { DropArea {