单网卡托盘tooltip显示去掉“已连接: ”字样

This commit is contained in:
zhangyuanyuan1 2023-05-04 14:28:42 +08:00
parent 6daa149db7
commit fc15e62053
1 changed files with 3 additions and 0 deletions

View File

@ -574,6 +574,9 @@ void MainWindow::assembleTrayIconTooltip(QMap<QString, QString> &map, QString &t
QMap<QString, QString>::iterator iter = map.begin();
if (map.size() == 1) {
tip = map.value(iter.key());
if (tip.indexOf(":")) {
tip = tip.mid(tip.indexOf(":") + 2); //单网卡显示时去掉“已连接: ”字样
}
} else if (map.size() > 1) {
tip = "";
int count = 0;