Clear the model before updating the contents

This commit is contained in:
Matti Viljanen 2022-08-10 21:52:46 +03:00
parent 7c32c10c9b
commit 18c47e0a4b
No known key found for this signature in database
GPG key ID: CF32A1495158F888

View file

@ -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) {