Fix Display slider (hopefully)
This commit is contained in:
parent
54b531586a
commit
99420fae93
1 changed files with 8 additions and 6 deletions
|
|
@ -439,12 +439,14 @@ ColumnLayout {
|
|||
stepSize: 0.05
|
||||
snapAlways: true
|
||||
value: parent.currentValue
|
||||
onValueChanged: {
|
||||
let overrides = Settings.settings.monitorScaleOverrides || {};
|
||||
overrides = Object.assign({}, overrides);
|
||||
overrides[monitorCard.monitorName] = value;
|
||||
Settings.settings.monitorScaleOverrides = overrides;
|
||||
parent.currentValue = value;
|
||||
onMoved: {
|
||||
if (isFinite(value)) {
|
||||
let overrides = Settings.settings.monitorScaleOverrides || {};
|
||||
overrides = Object.assign({}, overrides);
|
||||
overrides[monitorCard.monitorName] = value;
|
||||
Settings.settings.monitorScaleOverrides = overrides;
|
||||
parent.currentValue = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
Text { text: parent.currentValue.toFixed(2); font.pixelSize: 12 * Theme.scale(screen); color: Theme.textPrimary; width: 36 }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue