From 18c47e0a4bab0998c118d9372ecaa6aa161a278b Mon Sep 17 00:00:00 2001 From: Matti Viljanen Date: Wed, 10 Aug 2022 21:52:46 +0300 Subject: [PATCH] Clear the model before updating the contents --- application/qml/pages/LogPage.qml | 1 + 1 file changed, 1 insertion(+) diff --git a/application/qml/pages/LogPage.qml b/application/qml/pages/LogPage.qml index fd46504..00afa3d 100644 --- a/application/qml/pages/LogPage.qml +++ b/application/qml/pages/LogPage.qml @@ -140,6 +140,7 @@ Page { Component.onCompleted: updateText() property string text: "" function updateText() { + model.clear() logView.text = logger.readLogfile(settings.logFilename) logView.text.split("\n").forEach( function(str) {