~aleteoryx/muditaos

1b6e1a10ad4401a6710516a50629c914a660452f — Pawel Olejniczak 4 years ago bd92e37
[EGD-6024] Fix refreshing bt devices list after disconnect

After pushing Disconnect button, list was not refreshing
in a proper way, a disconnect button was nat changed to connect.
M module-apps/application-settings-new/models/BluetoothSettingsModel.cpp => module-apps/application-settings-new/models/BluetoothSettingsModel.cpp +0 -2
@@ 86,6 86,4 @@ void BluetoothSettingsModel::requestConnection(std::string addr)
void BluetoothSettingsModel::requestDisconnection()
{
    application->bus.sendUnicast(std::make_shared<message::bluetooth::Disconnect>(), service::name::bluetooth);
    application->bus.sendUnicast(std::make_shared<::message::bluetooth::RequestBondedDevices>(),
                                 service::name::bluetooth);
}

M module-apps/application-settings-new/windows/AllDevicesWindow.cpp => module-apps/application-settings-new/windows/AllDevicesWindow.cpp +1 -0
@@ 93,6 93,7 @@ namespace gui
                    LOG_DEBUG("Device: %s", device.name.c_str());
                    if (isConnected) {
                        bluetoothSettingsModel->requestDisconnection();
                        addressOfConnectedDevice.clear();
                        refreshOptionsList();
                    }
                    else {