{
std::shared_ptr<DeviceProber> prober;
- if (m_prober != nullptr)
+ if (m_prober != nullptr) {
+ if (m_prober->type == iface)
+ return;
+
m_prober->closeAllDevices();
+ }
switch (iface) {
case DeviceProber::DeviceInterfaces::LINUX:
{
ui->cbox_devices->clear();
+ if (m_prober == nullptr)
+ return;
+
for (const DeviceProber::DeviceInfo& dinfo : m_prober->listDevices()) {
QString name;
if (dinfo.name.length() == 0)
return;
}
+ ui->cbox_effectSlots->clear();
+
iface = static_cast<DeviceProber::DeviceInterfaces>(rawIface);
createDeviceProber(iface);
+ fillDeviceList();
}
void MainWindow::onRefreshDevicesClicked()