Skip to content

Commit c6295aa

Browse files
committed
UI: Add a preference to show the plot on the Data tab by default
1 parent c9b5181 commit c6295aa

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

ui.qml.in

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -888,6 +888,7 @@ Item {
888888
property int tempWarningOffset: 10
889889
property alias tuneSlotCount: prefTuneSlotCount.value
890890
property alias showTuneDiffCount: prefShowTuneDiffCount.checked
891+
property alias showRTPlotByDefault: prefShowRTPlotByDefault.checked
891892
property int plotMaxWindowMinutes: 30
892893
property alias showWelcomeDialog: prefShowWelcomeDialog.checked
893894
}
@@ -3996,6 +3997,12 @@ Item {
39963997
label: "Show changed options count on tunes"
39973998
}
39983999

4000+
RightSwitch {
4001+
id: prefShowRTPlotByDefault
4002+
checked: false
4003+
label: "Show RT plot on Data tab by default"
4004+
}
4005+
39994006
IntTextField {
40004007
label: "Realtime plot maximum window"
40014008
valueUnit: "minutes"
@@ -6185,6 +6192,10 @@ Item {
61856192
falseIconPath: Path {
61866193
PathSvg {path: "M 10 12 L 10 38 L 42 38 M 10 30 L 22 22 L 32 28 L 39 18"}
61876194
}
6195+
6196+
Component.onCompleted: {
6197+
value = preferences.showRTPlotByDefault;
6198+
}
61886199
}
61896200

61906201
ScrollView {

0 commit comments

Comments
 (0)