summaryrefslogtreecommitdiff
path: root/modules/controlcenter/bluetooth/Settings.qml
diff options
context:
space:
mode:
authorATMDA <atdma2600@gmail.com>2025-11-17 08:09:32 -0500
committerATMDA <atdma2600@gmail.com>2025-11-17 08:09:32 -0500
commitc2c04b86379c222b5d0e0f123b12713e7a82366e (patch)
tree3c95c004fa6eebf0152512195521223e47bb132f /modules/controlcenter/bluetooth/Settings.qml
parentcontrolcenter: lazyload cleanup confirmed (diff)
downloadcaelestia-shell-c2c04b86379c222b5d0e0f123b12713e7a82366e.tar.gz
caelestia-shell-c2c04b86379c222b5d0e0f123b12713e7a82366e.tar.bz2
caelestia-shell-c2c04b86379c222b5d0e0f123b12713e7a82366e.zip
controlcenter: corrections on scrolling in panes and missing scrollbars
Diffstat (limited to 'modules/controlcenter/bluetooth/Settings.qml')
-rw-r--r--modules/controlcenter/bluetooth/Settings.qml12
1 files changed, 8 insertions, 4 deletions
diff --git a/modules/controlcenter/bluetooth/Settings.qml b/modules/controlcenter/bluetooth/Settings.qml
index fd33af9..c8453b6 100644
--- a/modules/controlcenter/bluetooth/Settings.qml
+++ b/modules/controlcenter/bluetooth/Settings.qml
@@ -284,8 +284,12 @@ ColumnLayout {
CustomSpinBox {
min: 0
- value: root.session.bt.currentAdapter.discoverableTimeout
- onValueModified: value => root.session.bt.currentAdapter.discoverableTimeout = value
+ value: root.session.bt.currentAdapter?.discoverableTimeout ?? 0
+ onValueModified: value => {
+ if (root.session.bt.currentAdapter) {
+ root.session.bt.currentAdapter.discoverableTimeout = value;
+ }
+ }
}
}
@@ -345,7 +349,7 @@ ColumnLayout {
anchors.top: renameLabel.bottom
anchors.leftMargin: root.session.bt.editingAdapterName ? 0 : -Appearance.padding.normal
- text: root.session.bt.currentAdapter.name
+ text: root.session.bt.currentAdapter?.name ?? ""
readOnly: !root.session.bt.editingAdapterName
onAccepted: {
root.session.bt.editingAdapterName = false;
@@ -392,7 +396,7 @@ ColumnLayout {
function onClicked(): void {
root.session.bt.editingAdapterName = false;
- adapterNameEdit.text = Qt.binding(() => root.session.bt.currentAdapter.name);
+ adapterNameEdit.text = Qt.binding(() => root.session.bt.currentAdapter?.name ?? "");
}
}