From 5d6c1768dc84ff34c4d08df83e3424a56bee8ded Mon Sep 17 00:00:00 2001 From: Ignacio Rodriguez Date: Thu, 21 Jan 2021 22:14:40 +0700 Subject: [PATCH] reflecting status post-init --- src/gui/src/TrayIcon.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/src/TrayIcon.h b/src/gui/src/TrayIcon.h index 39d6e3133..86f9b0f3c 100644 --- a/src/gui/src/TrayIcon.h +++ b/src/gui/src/TrayIcon.h @@ -42,6 +42,10 @@ public: set = [this](const QIcon& icon) { m_pTrayIcon->setIcon(icon); }; tryCreate(); + if (m_init) { + m_init(); + m_init = std::function(); + } } void tryCreate() const;