perf(hotspot):避免不必要的调用
This commit is contained in:
parent
313397e0d3
commit
8f867f7562
|
@ -360,7 +360,12 @@ void MobileHotspotWidget::onActiveConnectionChanged(QString deviceName, QString
|
|||
setUiEnabled(false);
|
||||
m_uuid.clear();
|
||||
}
|
||||
if (m_interfaceComboBox) {
|
||||
|
||||
if (deviceName != m_interfaceName) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_interfaceComboBox && status == 2) {
|
||||
onInterfaceChanged();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue