Skip to content

Commit f354698

Browse files
committed
boost(profile::icon): Check all device in profile for icon in systray menu
Fixes #1332
1 parent f62447d commit f354698

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SoundSwitch/Framework/Profile/UI/ProfileTrayIconBuilder.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ private ProfileToolStripMenuItem BuildMenuItem(Profile profile)
5151

5252
try
5353
{
54-
var device = AudioDeviceLister.GetDevices(DataFlow.Render, DeviceState.Active).FirstOrDefault(info => info.Equals(wrapper.DeviceInfo));
54+
var device = AudioDeviceLister.GetDevices(wrapper.DeviceInfo.Type, DeviceState.Active).FirstOrDefault(info => info.Equals(wrapper.DeviceInfo));
5555
image = device?.SmallIcon.ToBitmap();
5656
}
5757
catch (Exception)

0 commit comments

Comments
 (0)