summaryrefslogtreecommitdiffstats
path: root/resources/qml
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-03-03 21:34:24 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2021-03-03 21:34:24 +0100
commite3803ceb9a9fa437fbd41a2d70c3c37ab916480f (patch)
treee682f18d73adcf2b67886e278916563c5449d2dd /resources/qml
parent3b4f8f20160dd6dde6e473471d6caf242327f926 (diff)
Avoid some duplicate property queries
Diffstat (limited to 'resources/qml')
-rw-r--r--resources/qml/MessageView.qml2
-rw-r--r--resources/qml/ScrollHelper.qml2
2 files changed, 2 insertions, 2 deletions
diff --git a/resources/qml/MessageView.qml b/resources/qml/MessageView.qml
index eefde046..0503f467 100644
--- a/resources/qml/MessageView.qml
+++ b/resources/qml/MessageView.qml
@@ -203,7 +203,7 @@ ScrollView {
TimelineRow {
id: timelinerow
- y: section.active && section.visible ? section.y + section.height : 0
+ y: section.visible && section.active ? section.y + section.height : 0
}
Connections {
diff --git a/resources/qml/ScrollHelper.qml b/resources/qml/ScrollHelper.qml
index 7dc31464..ab955552 100644
--- a/resources/qml/ScrollHelper.qml
+++ b/resources/qml/ScrollHelper.qml
@@ -90,7 +90,7 @@ MouseArea {
// Show the scrollbars
flickable.flick(0, 0);
flickable.contentY = newPos;
- cancelFlickStateTimer.start();
+ cancelFlickStateTimer.restart();
}
Timer {