mirror of
https://github.com/polybar/polybar.git
synced 2024-11-11 13:50:56 -05:00
feat(net): All tokens for all labels
If you have `accumulate-stats = true` it is useful to be able to display the current network speed even if the interface is disconnected.
This commit is contained in:
parent
014606294c
commit
01be9b3504
1 changed files with 3 additions and 0 deletions
|
@ -136,6 +136,9 @@ namespace modules {
|
||||||
if (m_label[connection_state::PACKETLOSS]) {
|
if (m_label[connection_state::PACKETLOSS]) {
|
||||||
replace_tokens(m_label[connection_state::PACKETLOSS]);
|
replace_tokens(m_label[connection_state::PACKETLOSS]);
|
||||||
}
|
}
|
||||||
|
if (m_label[connection_state::DISCONNECTED]) {
|
||||||
|
replace_tokens(m_label[connection_state::DISCONNECTED]);
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue