auto refresh devices on popup
This commit is contained in:
parent
a2c0ecef83
commit
c25705c50f
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user