fix(tray): Disable tray if nodraw is set

This commit is contained in:
Michael Carlberg 2016-11-11 10:23:12 +01:00
parent 07c6ce8966
commit d9707068f9

View File

@ -196,6 +196,7 @@ void bar::bootstrap(bool nodraw) { // {{{
if (nodraw) { if (nodraw) {
m_log.trace("bar: Abort bootstrap routine (reason: nodraw)"); m_log.trace("bar: Abort bootstrap routine (reason: nodraw)");
m_traymanager.reset();
return; return;
} }
@ -444,9 +445,7 @@ void bar::bootstrap(bool nodraw) { // {{{
// }}} // }}}
if (!nodraw) {
bootstrap_tray(); bootstrap_tray();
}
m_connection.flush(); m_connection.flush();
} // }}} } // }}}