From 840856abc1008fd34e8f7d15b29c4c81efb58b73 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sun, 27 Jul 2025 11:29:06 +1000 Subject: dcontent: fix discoverable timeout spinbox --- modules/detachedcontent/bluetooth/Settings.qml | 2 +- widgets/CustomSpinBox.qml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/detachedcontent/bluetooth/Settings.qml b/modules/detachedcontent/bluetooth/Settings.qml index 808cd7c..a0d7f12 100644 --- a/modules/detachedcontent/bluetooth/Settings.qml +++ b/modules/detachedcontent/bluetooth/Settings.qml @@ -274,7 +274,7 @@ ColumnLayout { CustomSpinBox { min: 0 value: root.session.bt.currentAdapter.discoverableTimeout - onValueModified: root.session.bt.currentAdapter.discoverableTimeout = value + onValueModified: value => root.session.bt.currentAdapter.discoverableTimeout = value } } } diff --git a/widgets/CustomSpinBox.qml b/widgets/CustomSpinBox.qml index 5021bd5..7bd4d2b 100644 --- a/widgets/CustomSpinBox.qml +++ b/widgets/CustomSpinBox.qml @@ -9,8 +9,8 @@ RowLayout { id: root property int value - property real max: NaN - property real min: NaN + property real max: Infinity + property real min: -Infinity property alias repeatRate: timer.interval signal valueModified(value: int) -- cgit v1.2.3-freya