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:
@@ -1520,6 +1520,7 @@ opt_bluetooth_reset
|
||||
EOF
|
||||
|
||||
[ "$status" -eq 0 ]
|
||||
[[ "$output" == *"Bluetooth devices may disconnect briefly during refresh"* ]]
|
||||
[[ "$output" == *"Bluetooth module restarted"* ]]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user