summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2019-10-22 15:31:17 -0400
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-10-26 11:38:26 -0700
commitface9ba1a8aa2caae065b677885515b94e05e0ae (patch)
tree0940b27f491e944507f1e9e7cc05a77e300afaa9
parenta4ca3c520c7fbae5d1739a88e928a60585676ade (diff)
downloadsubsurface-face9ba1a8aa2caae065b677885515b94e05e0ae.tar.gz
Mobile: fix cacheBuffer for log window
The old value made no sense at all. Why would we want to cache up to 10k entries of the log? Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--mobile-widgets/qml/Log.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/mobile-widgets/qml/Log.qml b/mobile-widgets/qml/Log.qml
index a027b7513..6776d0158 100644
--- a/mobile-widgets/qml/Log.qml
+++ b/mobile-widgets/qml/Log.qml
@@ -21,7 +21,7 @@ Kirigami.ScrollablePage {
currentIndex: -1
boundsBehavior: Flickable.StopAtBounds
maximumFlickVelocity: parent.height * 5
- cacheBuffer: Math.max(5000, parent.height * 5)
+ cacheBuffer: 100 // cache up to 100 lines above / below what is shown for smoother scrolling
focus: true
clip: true
delegate : Text {