1
0
Fork 0
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:
patrick96 2019-01-12 15:48:23 +01:00 committed by Patrick Ziegler
parent 014606294c
commit 01be9b3504

View file

@ -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;
} }