diff --git a/plugins/systemvolume/systemvolumeplugin-win.cpp b/plugins/systemvolume/systemvolumeplugin-win.cpp index c3fb79afa..0489c8d2f 100644 --- a/plugins/systemvolume/systemvolumeplugin-win.cpp +++ b/plugins/systemvolume/systemvolumeplugin-win.cpp @@ -203,12 +203,9 @@ public: // This callback is supper spammy. Care only about name and description changes. if (IsEqualPropertyKey(key, PKEY_Device_FriendlyName)) { enclosing.sendSinkList(); - } -#ifndef __MINGW32__ - else if (IsEqualPropertyKey(key, PKEY_Device_DeviceDesc)) { + } else if (IsEqualPropertyKey(key, PKEY_Device_DeviceDesc)) { enclosing.sendSinkList(); } -#endif return S_OK; } @@ -302,13 +299,9 @@ bool SystemvolumePlugin::sendSinkList() name = QString::fromWCharArray(deviceProperty.pwszVal); PropVariantClear(&deviceProperty); -#ifndef __MINGW32__ deviceProperties->GetValue(PKEY_Device_DeviceDesc, &deviceProperty); desc = QString::fromWCharArray(deviceProperty.pwszVal); PropVariantClear(&deviceProperty); -#else - desc = name; -#endif QJsonObject sinkObject; sinkObject.insert(QStringLiteral("name"), name); diff --git a/plugins/systemvolume/systemvolumeplugin-win.h b/plugins/systemvolume/systemvolumeplugin-win.h index 3c3fb8327..6a868b63d 100644 --- a/plugins/systemvolume/systemvolumeplugin-win.h +++ b/plugins/systemvolume/systemvolumeplugin-win.h @@ -15,10 +15,6 @@ #include #include -#ifdef __MINGW32__ -#include -#endif - #define PACKET_TYPE_SYSTEMVOLUME QStringLiteral("kdeconnect.systemvolume") #define PACKET_TYPE_SYSTEMVOLUME_REQUEST QStringLiteral("kdeconnect.systemvolume.request")