fix(tray): Drop warning

This commit is contained in:
Michael Carlberg 2017-01-27 13:33:39 +01:00
parent 41f7f82bd0
commit af5f129b76
1 changed files with 3 additions and 1 deletions

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);