mirror of
https://github.com/polybar/polybar.git
synced 2024-11-03 04:33:30 -05:00
fix: Module margin
Only output module margin right when there are preceeding modules.
This commit is contained in:
parent
891ff6d80a
commit
cab2d49532
1 changed files with 4 additions and 4 deletions
|
@ -501,6 +501,10 @@ void controller::on_update(bool force) {
|
|||
continue;
|
||||
}
|
||||
|
||||
if (!block_contents.empty() && !(is_right && module == block.second.back())) {
|
||||
block_contents += string(margin_right, ' ');
|
||||
}
|
||||
|
||||
if (!block_contents.empty() && !separator.empty()) {
|
||||
block_contents += separator;
|
||||
}
|
||||
|
@ -510,10 +514,6 @@ void controller::on_update(bool force) {
|
|||
}
|
||||
|
||||
block_contents += module->contents();
|
||||
|
||||
if (!(is_right && module == block.second.back())) {
|
||||
block_contents += string(margin_right, ' ');
|
||||
}
|
||||
}
|
||||
|
||||
if (block_contents.empty()) {
|
||||
|
|
Loading…
Reference in a new issue