fix: hide box by default

This commit is contained in:
Alex 2020-05-24 19:02:52 +02:00
parent 9a123052a0
commit 2ffc96d0b2
1 changed files with 3 additions and 0 deletions

View File

@ -4,6 +4,9 @@
waybar::modules::Custom::Custom(const std::string& name, const std::string& id,
const Json::Value& config)
: ALabel(config, "custom-" + name, id, "{}"), name_(name), fp_(nullptr), pid_(-1) {
// Hide box by default
event_box_.hide();
if (interval_.count() > 0) {
delayWorker();
} else if (config_["exec"].isString()) {