单网卡托盘tooltip显示去掉“已连接: ”字样
This commit is contained in:
parent
6daa149db7
commit
fc15e62053
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue