From 7d7fff8c160959543ee20810b80e0c56ef60448e Mon Sep 17 00:00:00 2001 From: zhouxiali Date: Mon, 28 Jun 2021 16:29:40 +0800 Subject: [PATCH] =?UTF-8?q?fix(icon):When=20wired=20and=20wireless=20are?= =?UTF-8?q?=20connected=20at=20the=20same=20time,=20the=20taskbar=20displa?= =?UTF-8?q?ys=20the=20wired=20network=20icon=20log:=E6=9C=89=E7=BA=BF?= =?UTF-8?q?=E5=92=8C=E6=97=A0=E7=BA=BF=E5=90=8C=E6=97=B6=E8=BF=9E=E6=8E=A5?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E4=BB=BB=E5=8A=A1=E6=A0=8F=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E6=9C=89=E7=BA=BF=E7=BD=91=E7=BB=9C=E5=9B=BE=E6=A0=87=20bug:63?= =?UTF-8?q?121?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mainwindow.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 22c289ad..e9f7ddff 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -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 == "--") {