网卡插拔逻辑

This commit is contained in:
jzxc95 2023-04-12 17:05:14 +08:00
parent 77b888e0e7
commit 38d12cb626
1 changed files with 6 additions and 0 deletions

View File

@ -560,6 +560,12 @@ void LanPage::deleteDeviceFromCombox(QString deviceName)
disconnect(m_deviceComboBox, QOverload<int>::of(&QComboBox::currentIndexChanged),
this, &LanPage::onDeviceComboxIndexChanged);
if (m_devList.isEmpty()) {
m_tipsLabel->hide();
m_deviceFrame->hide();
m_deviceComboBox->hide();
}
// if (m_netSwitch->isChecked()) {
if (0 == m_enableDeviceList.count()) {
//1、没有使能任何网卡