Update client.cpp

This commit is contained in:
Alex 2020-04-17 23:41:32 +02:00 committed by GitHub
parent 4eb462426d
commit 4a80874da9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,9 +70,8 @@ bool waybar::Client::isValidOutput(const Json::Value &config, struct waybar_outp
return true;
}
}
}
if (config["output"].isString()) {
return false;
} else if (config["output"].isString()) {
auto config_output_name = config["output"].asString();
if (!config_output_name.empty()) {
if (config_output_name.substr(0, 1) == "!") {