Skip to content

Commit

Permalink
Clear the model before updating the contents
Browse files Browse the repository at this point in the history
  • Loading branch information
direc85 committed Aug 10, 2022
1 parent 7c32c10 commit 18c47e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions application/qml/pages/LogPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 18c47e0

Please sign in to comment.