Skip to content

Commit

Permalink
Fix the state of Service UUID checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
wh201906 committed Apr 6, 2024
1 parent 86508ff commit b57a47c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/devicetab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -692,8 +692,13 @@ void DeviceTab::on_openButton_clicked()
m_connection->open();

settings->beginGroup(m_historyPrefix["BTClient"]);
if(arg.RxServiceUUID != QBluetoothUuid::SerialPort)
if(arg.RxServiceUUID == QBluetoothUuid::SerialPort)
{
settings->setValue("UserSpecifiedServiceUUID", false);
}
else
{
// Update "ServiceUUID" only if the service UUID is not SerialPort
settings->setValue("UserSpecifiedServiceUUID", ui->BTClient_serviceUUIDBox->isChecked());
settings->setValue("ServiceUUID", arg.RxServiceUUID);
}
Expand Down

0 comments on commit b57a47c

Please sign in to comment.