From 4a80874da9f258b8162029b9c78b984a984cc4e8 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 17 Apr 2020 23:41:32 +0200 Subject: [PATCH] Update client.cpp --- src/client.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/client.cpp b/src/client.cpp index baa2e7bf..5e76b3ce 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -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) == "!") {