this->disconnect_btn = ui_utils_push_button_add(this, table, "Disconnect", _disconnect_button_pressed_cb);
elm_table_pack(table, this->disconnect_btn, 1, 0, 1, 1);
- elm_object_disabled_set(this->disconnect_btn, EINA_TRUE);
-
this->read_btn = ui_utils_push_button_add(this, table, "Read", _read_button_pressed_cb);
elm_table_pack(table, this->read_btn, 2, 0, 1, 1);
if(this->view->tbt_info->apptype == TBT_APP_BLE_GATT_CLIENT)
{
//Discover Bluetooth LE Devices
+ elm_object_disabled_set(this->disconnect_btn, EINA_TRUE);
DBG("TBT Discovery Started...");
discover_bluetooth_le(this);
DBG("TBT Discovery Completed...");
DBG("remote_server_address %s", this->remote_server_address);
result = bt_gatt_disconnect(this->remote_server_address);
RETM_IF(result != BT_ERROR_NONE, "bt_gatt_disconnect failed --> error: %s", get_bluetooth_error(result));
-
+ elm_object_disabled_set(this->disconnect_btn, EINA_TRUE);
}
elm_object_disabled_set(this->read_btn, EINA_TRUE);
elm_object_disabled_set(this->write_btn, EINA_TRUE);
elm_object_disabled_set(this->expand_btn, EINA_TRUE);
+ elm_object_disabled_set(this->disconnect_btn, EINA_FALSE);
break;
}