From 92959c2adcf377120dd92aad32be9115d91fcd30 Mon Sep 17 00:00:00 2001 From: mappu Date: Tue, 2 Oct 2018 20:12:47 +1300 Subject: [PATCH] trayicon: refresh content upon successful change --- trayicon.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/trayicon.cpp b/trayicon.cpp index 2a614ea..d999cb2 100644 --- a/trayicon.cpp +++ b/trayicon.cpp @@ -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);