mirror of
https://github.com/iDescriptor/iDescriptor.git
synced 2026-06-22 03:45:51 +08:00
WIP: refactor remaining code
- Initial fixes for the error "peer closed connection without sending TLS close_notify" - ServiceManager still need a lot work - Not prod ready still experimental
This commit is contained in:
+10
-10
@@ -450,16 +450,16 @@ MainWindow::MainWindow(QWidget *parent)
|
||||
connect(NetworkDeviceManager::sharedInstance(),
|
||||
&NetworkDeviceManager::deviceAdded, this,
|
||||
[this](const NetworkDevice &device) {
|
||||
// const iDescriptorDevice *idevice =
|
||||
// AppContext::sharedInstance()->getDeviceByMacAddress(
|
||||
// device.macAddress);
|
||||
// if (idevice) {
|
||||
// qDebug() << "Network device matched to connected device:"
|
||||
// << QString::fromStdString(
|
||||
// idevice->deviceInfo.deviceName)
|
||||
// << "MAC:" << device.macAddress;
|
||||
// // You can now use 'idevice' as needed
|
||||
// }
|
||||
const iDescriptorDevice *idevice =
|
||||
AppContext::sharedInstance()->getDeviceByMacAddress(
|
||||
device.macAddress);
|
||||
if (idevice) {
|
||||
qDebug() << "Network device matched to connected device:"
|
||||
<< QString::fromStdString(
|
||||
idevice->deviceInfo.deviceName)
|
||||
<< "MAC:" << device.macAddress;
|
||||
// You can now use 'idevice' as needed
|
||||
}
|
||||
// FIXME: both macAddress and udid can be used to get pairing
|
||||
// file
|
||||
|
||||
|
||||
Reference in New Issue
Block a user