disable modules, README, warning fixes

This commit is contained in:
Damocles 2026-04-12 12:19:30 +02:00
parent ed68b9fd93
commit 5ad933c03b
9 changed files with 215 additions and 24 deletions

View file

@ -5,7 +5,7 @@ import "." as M
M.BarSection {
id: root
spacing: M.Theme.moduleSpacing
visible: root.state !== "unavailable"
visible: M.Modules.bluetooth && root.state !== "unavailable"
tooltip: {
if (root.state === "off") return "Bluetooth: off";
if (root.state === "connected") return "Bluetooth: " + root.device;
@ -61,10 +61,9 @@ M.BarSection {
anchors.verticalCenter: parent.verticalCenter
}
MouseArea {
anchors.fill: parent
TapHandler {
cursorShape: Qt.PointingHandCursor
onClicked: {
onTapped: {
toggle.cmd = root.state === "off" ? "on" : "off";
toggle.running = true;
}