add tool base widget, fix minor bugs, rename some widgets

This commit is contained in:
uncor3
2026-02-18 13:56:02 -08:00
parent 87e1f1b498
commit 9336a7faa2
26 changed files with 286 additions and 100 deletions
+13 -5
View File
@@ -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:"