bar: fix setVisible
Accidentally removed updating the visible variable
This commit is contained in:
parent
15e1547661
commit
a544f4b2cd
|
@ -66,7 +66,7 @@ class Bar {
|
|||
~Bar();
|
||||
|
||||
void setMode(const std::string &mode);
|
||||
void setVisible(bool visible);
|
||||
void setVisible(bool value);
|
||||
void toggle();
|
||||
void handleSignal(int);
|
||||
|
||||
|
|
|
@ -404,7 +404,8 @@ void waybar::Bar::onMap(GdkEventAny* /*unused*/) {
|
|||
setPassThrough(passthrough_);
|
||||
}
|
||||
|
||||
void waybar::Bar::setVisible(bool visible) {
|
||||
void waybar::Bar::setVisible(bool value) {
|
||||
visible = value;
|
||||
if (auto mode = config.get("mode", {}); mode.isString()) {
|
||||
setMode(visible ? config["mode"].asString() : MODE_INVISIBLE);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue