From d8c309ec3571254402d5e5210a99e28f407196d8 Mon Sep 17 00:00:00 2001 From: Michael Carlberg Date: Sun, 30 Oct 2016 06:18:33 +0100 Subject: [PATCH] fix(date): Do not override get_output --- include/modules/date.hpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/include/modules/date.hpp b/include/modules/date.hpp index 69d0eadb..84be8f1a 100644 --- a/include/modules/date.hpp +++ b/include/modules/date.hpp @@ -39,17 +39,17 @@ namespace modules { return true; } - string get_output() { + bool build(builder* builder, string tag) const { + if (tag != TAG_DATE) { + return false; + } + if (!m_formatalt.empty()) m_builder->cmd(mousebtn::LEFT, EVENT_TOGGLE); - m_builder->node(timer_module::get_output()); - return m_builder->flush(); - } - bool build(builder* builder, string tag) const { - if (tag == TAG_DATE) - builder->node(m_buffer); - return tag == TAG_DATE; + builder->node(m_buffer); + + return true; } bool handle_event(string cmd) {