fix(controller): don't draw window if writing to stdout (#1322)

fixes #1314.
This commit is contained in:
NBonaparte 2018-07-24 10:39:32 -07:00 committed by Patrick Ziegler
parent 01fc545e09
commit 4cb0b18389

View File

@ -348,7 +348,12 @@ void controller::read_events() {
*/ */
void controller::process_eventqueue() { void controller::process_eventqueue() {
m_log.info("Eventqueue worker (thread-id=%lu)", this_thread::get_id()); m_log.info("Eventqueue worker (thread-id=%lu)", this_thread::get_id());
m_sig.emit(signals::eventqueue::start{}); if (!m_writeback) {
m_sig.emit(signals::eventqueue::start{});
} else {
// bypass the start eventqueue signal
m_sig.emit(signals::ui::ready{});
}
while (!g_terminate) { while (!g_terminate) {
event evt{}; event evt{};