1
0
Fork 0
mirror of https://github.com/polybar/polybar.git synced 2024-11-11 13:50:56 -05:00

fix(tray): Drop warning

This commit is contained in:
Michael Carlberg 2017-01-27 13:33:39 +01:00
parent 41f7f82bd0
commit af5f129b76

View file

@ -70,8 +70,10 @@ void tray_manager::setup(const bar_settings& bar_opts) {
m_opts.align = alignment::RIGHT;
} else if (position == "center") {
m_opts.align = alignment::CENTER;
} else {
} else if (position != "none") {
return m_log.err("Disabling tray manager (reason: Invalid position \"" + position + "\")");
} else {
return;
}
m_opts.detached = conf.get(bs, "tray-detached", false);