fix(Network): format-alt

This commit is contained in:
Alexis
2019-01-13 22:36:37 +01:00
parent f8116132a7
commit eace8c549f
3 changed files with 17 additions and 12 deletions

View File

@ -43,8 +43,8 @@ bool waybar::ALabel::handleToggle(GdkEventButton* const& e) {
} else if (config_["on-click-right"].isString() && e->button == 3) {
waybar::util::command::forkExec(config_["on-click-right"].asString());
} else {
alt = !alt;
if (alt) {
alt_ = !alt_;
if (alt_) {
format_ = config_["format-alt"].asString();
} else {
format_ = default_format_;