diff --git a/trayicon.cpp b/trayicon.cpp index 4dd4ee4..bced9d1 100644 --- a/trayicon.cpp +++ b/trayicon.cpp @@ -37,6 +37,9 @@ TrayIcon::TrayIcon(QObject *parent) : // Need to use BlockingQueuedConnection to pull items off pulseaudio thread before it reallocates them connect(&this->pulse, &QPulse::GotCardInfoList, this, &TrayIcon::onGotPulseCardInfo, Qt::BlockingQueuedConnection); + // Immediately refresh when popup is shown (normal right-click event), so that data always seems live + connect(this->menu, &QMenu::aboutToShow, this, &TrayIcon::refreshData); + refreshData(); }