Skip to content

Commit

Permalink
fix: improve log performance in QML version
Browse files Browse the repository at this point in the history
  • Loading branch information
Bionus committed Dec 30, 2022
1 parent 895e4ae commit 412def7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
9 changes: 7 additions & 2 deletions src/gui-qml/src/components/LogScreen.qml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ import QtQuick.Controls 2.5
import QtQuick.Layouts 1.12

Page {
property string log
onVisibleChanged: {
if (visible) {
logLabel.text = backend.log
}
}

header: ToolBar {
RowLayout {
Expand All @@ -29,8 +33,9 @@ Page {
padding: 6

Label {
id: logLabel
anchors.fill: parent
text: log
text: ""
textFormat: Text.RichText
}
}
Expand Down
1 change: 0 additions & 1 deletion src/gui-qml/src/main-screen.qml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ ApplicationWindow {
id: logScreen
visible: currentPage == "log"
anchors.fill: parent
log: backend.log
}

Dialog {
Expand Down

0 comments on commit 412def7

Please sign in to comment.