remove brackets.

This commit is contained in:
Sophia Hadash 2021-08-23 20:57:11 +02:00 committed by SophiaHadash
parent b9b3e35e09
commit 41375c6f6e

View file

@ -507,10 +507,9 @@ void ThemeData::parseElement(const pugi::xml_node& root,
// attribute to prevent nodes overwriting each other.
if (strcmp(node.name(), "customButtonIcon") == 0) {
const auto btn = node.attribute("button").as_string("");
if (strcmp(btn, "") == 0) {
if (strcmp(btn, "") == 0)
LOG(LogError)
<< "<customButtonIcon> element requires the `button` property.";
}
else
element.properties[btn] = path;
}