Clear the model before updating the contents
This commit is contained in:
parent
7c32c10c9b
commit
18c47e0a4b
1 changed files with 1 additions and 0 deletions
|
@ -140,6 +140,7 @@ Page {
|
||||||
Component.onCompleted: updateText()
|
Component.onCompleted: updateText()
|
||||||
property string text: ""
|
property string text: ""
|
||||||
function updateText() {
|
function updateText() {
|
||||||
|
model.clear()
|
||||||
logView.text = logger.readLogfile(settings.logFilename)
|
logView.text = logger.readLogfile(settings.logFilename)
|
||||||
logView.text.split("\n").forEach(
|
logView.text.split("\n").forEach(
|
||||||
function(str) {
|
function(str) {
|
||||||
|
|
Loading…
Reference in a new issue