mirror of
https://github.com/polybar/polybar.git
synced 2026-03-06 00:09:54 +00:00
fix(format): Ignore empty contents
This commit is contained in:
@ -125,13 +125,11 @@ namespace modules {
|
||||
* Output content as defined in the config
|
||||
*/
|
||||
bool xwindow_module::build(builder* builder, const string& tag) const {
|
||||
if (tag == TAG_LABEL) {
|
||||
if (tag == TAG_LABEL && m_label && m_label.get()) {
|
||||
builder->node(m_label);
|
||||
} else {
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user