mirror of
https://github.com/iDescriptor/iDescriptor.git
synced 2026-06-22 03:45:51 +08:00
add tool base widget, fix minor bugs, rename some widgets
This commit is contained in:
+13
-5
@@ -435,11 +435,19 @@ MainWindow::MainWindow(QWidget *parent)
|
||||
connect(NetworkDeviceManager::sharedInstance(),
|
||||
&NetworkDeviceManager::deviceAdded, this,
|
||||
[this](const NetworkDevice &device) {
|
||||
// return; // FIXME: disable for now
|
||||
if (AppContext::sharedInstance()->getDeviceByMacAddress(
|
||||
device.macAddress)) {
|
||||
qDebug() << "Prefering wired connection on device MAC:"
|
||||
<< device.macAddress;
|
||||
if (auto existingDevice =
|
||||
AppContext::sharedInstance()->getDeviceByMacAddress(
|
||||
device.macAddress)) {
|
||||
if (existingDevice->deviceInfo.isWireless) {
|
||||
qDebug() << "Ignoring wireless device with MAC:"
|
||||
<< device.macAddress
|
||||
<< "as it's already initialized";
|
||||
|
||||
} else {
|
||||
qDebug() << "Prefering wired connection on device MAC:"
|
||||
<< device.macAddress;
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
qDebug() << "Trying to add network device with MAC:"
|
||||
|
||||
Reference in New Issue
Block a user