Fixed misused variable.

This commit is contained in:
Iskustvo
2018-09-02 22:04:35 +02:00
parent f4d143a3fa
commit 2cfdc714ee

View File

@@ -228,7 +228,7 @@ static std::shared_ptr<bar_config_t> parse_bar_config_from_json(const Json::Val
std::string position = value["position"].asString(); std::string position = value["position"].asString();
if (position == "top") { if (position == "top") {
bc->position = Position::TOP; bc->position = Position::TOP;
} else if (mode == "bottom") { } else if (position == "bottom") {
bc->position = Position::BOTTOM; bc->position = Position::BOTTOM;
} else { } else {
bc->position = Position::UNKNOWN; bc->position = Position::UNKNOWN;