fix(icon):When wired and wireless are connected at the same time, the taskbar displays the wired network icon

log:有线和无线同时连接时,任务栏显示有线网络图标
bug:63121
This commit is contained in:
zhouxiali 2021-06-28 16:29:40 +08:00
parent ea046660b4
commit 7d7fff8c16
1 changed files with 1 additions and 5 deletions

View File

@ -1053,11 +1053,7 @@ void MainWindow::getActiveInfoAndSetTrayIcon()
else {
setTrayLoading(true);
}
if (actWifiName != "--" && activeWifiSignalLv != 0) {
setTrayIconOfWifi(activeWifiSignalLv);
emit this->actWifiSignalLvChanaged(activeWifiSignalLv);
}
} else if (actWifiName != "--" && activeWifiSignalLv != 0) {
} else if (actLanName == "--" && actWifiName != "--" && activeWifiSignalLv != 0) {
setTrayIconOfWifi(activeWifiSignalLv);
emit this->actWifiSignalLvChanaged(activeWifiSignalLv);
} else if (actWifiName == "--") {