mirror of https://github.com/polybar/polybar.git
fix(tray): Drop warning
This commit is contained in:
parent
41f7f82bd0
commit
af5f129b76
|
@ -70,8 +70,10 @@ void tray_manager::setup(const bar_settings& bar_opts) {
|
||||||
m_opts.align = alignment::RIGHT;
|
m_opts.align = alignment::RIGHT;
|
||||||
} else if (position == "center") {
|
} else if (position == "center") {
|
||||||
m_opts.align = alignment::CENTER;
|
m_opts.align = alignment::CENTER;
|
||||||
} else {
|
} else if (position != "none") {
|
||||||
return m_log.err("Disabling tray manager (reason: Invalid position \"" + position + "\")");
|
return m_log.err("Disabling tray manager (reason: Invalid position \"" + position + "\")");
|
||||||
|
} else {
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_opts.detached = conf.get(bs, "tray-detached", false);
|
m_opts.detached = conf.get(bs, "tray-detached", false);
|
||||||
|
|
Loading…
Reference in New Issue