1
0
mirror of https://github.com/tw93/Mole.git synced 2026-03-22 16:45:07 +00:00

fix(optimize): warn before bluetooth refresh

Show "Bluetooth devices may disconnect briefly during refresh" before
actually restarting bluetoothd, so the user is not surprised by a
momentary disconnect.
This commit is contained in:
Tw93
2026-03-18 14:50:04 +08:00
parent b8f3a0ecd3
commit fa935548b0
2 changed files with 4 additions and 0 deletions

View File

@@ -1520,6 +1520,7 @@ opt_bluetooth_reset
EOF
[ "$status" -eq 0 ]
[[ "$output" == *"Bluetooth devices may disconnect briefly during refresh"* ]]
[[ "$output" == *"Bluetooth module restarted"* ]]
}