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;