summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-07-27 11:29:06 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-07-27 11:29:06 +1000
commit840856abc1008fd34e8f7d15b29c4c81efb58b73 (patch)
tree05b69718c016a78e8dcb3a0932ad0a5f391d590b
parentci: run flake update daily instead of on push (diff)
downloadcaelestia-shell-840856abc1008fd34e8f7d15b29c4c81efb58b73.tar.gz
caelestia-shell-840856abc1008fd34e8f7d15b29c4c81efb58b73.tar.bz2
caelestia-shell-840856abc1008fd34e8f7d15b29c4c81efb58b73.zip
dcontent: fix discoverable timeout spinbox
-rw-r--r--modules/detachedcontent/bluetooth/Settings.qml2
-rw-r--r--widgets/CustomSpinBox.qml4
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)