Skip to content

Commit

Permalink
Use bigger icons
Browse files Browse the repository at this point in the history
Support .ico as DeviceClassIconPath
Fixes #26
  • Loading branch information
Antoine Aflalo committed Sep 3, 2015
1 parent 4a8a1e5 commit d0b6ee6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion SoundSwitch/Model/AudioDeviceLister.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
* GNU General Public License for more details.
********************************************************************/

using System;
using System.Collections.Generic;
using AudioEndPoint;
using AudioEndPointControllerWrapper;
Expand Down
2 changes: 1 addition & 1 deletion SoundSwitch/UI/Forms/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ private void AddDeviceIconSmallImage(IAudioDevice device, ListView listView)
if (!listView.SmallImageList.Images.ContainsKey(device.DeviceClassIconPath))
{
listView.SmallImageList.Images.Add(device.DeviceClassIconPath,
AudioDeviceIconExtractor.ExtractIconFromAudioDevice(device, true));
AudioDeviceIconExtractor.ExtractIconFromAudioDevice(device, true));
}
}

Expand Down
2 changes: 1 addition & 1 deletion SoundSwitch/Util/AudioDeviceIconExtractor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public static Icon ExtractIconFromAudioDevice(IAudioDevice audioDevice, bool lar
{
if (audioDevice.DeviceClassIconPath.EndsWith(".ico"))
{
ico = Icon.ExtractAssociatedIcon(audioDevice.DeviceClassIconPath);
ico = Icon.ExtractAssociatedIcon(audioDevice.DeviceClassIconPath);
}
else
{
Expand Down

0 comments on commit d0b6ee6

Please sign in to comment.