trayicon: refresh content upon successful change

This commit is contained in:
mappu 2018-10-02 20:12:47 +13:00
parent 4b97762631
commit 92959c2adc
1 changed files with 2 additions and 0 deletions

View File

@ -34,6 +34,8 @@ TrayIcon::TrayIcon(QObject *parent) :
}
});
connect(&this->pulse, &QPulse::SetCardProfileOperationCompleted, this, &TrayIcon::refreshData); // ignore argument
// Need to use BlockingQueuedConnection to pull items off pulseaudio thread before it reallocates them
connect(&this->pulse, &QPulse::GotCardInfoList, this, &TrayIcon::onGotPulseCardInfo, Qt::BlockingQueuedConnection);