move away from icon.ExtractAssociatedIcon because it always extracts the 32x32 icon, but the stream deck has a 48x48 space for the icon
This commit is contained in:
@ -4,6 +4,7 @@ using System.Linq;
|
||||
using BarRaider.SdTools;
|
||||
using System.Drawing;
|
||||
using System.Runtime.InteropServices;
|
||||
using FocusVolumeControl.UI;
|
||||
|
||||
namespace FocusVolumeControl.AudioSessions;
|
||||
|
||||
@ -31,8 +32,9 @@ public sealed class ActiveAudioSessionWrapper : IAudioSession
|
||||
}
|
||||
else
|
||||
{
|
||||
var tmp = Icon.ExtractAssociatedIcon(ExecutablePath);
|
||||
_icon = Tools.ImageToBase64(tmp.ToBitmap(), true);
|
||||
var tmp = IconExtraction.GetIcon(ExecutablePath);
|
||||
//var tmp = Icon.ExtractAssociatedIcon(ExecutablePath);
|
||||
_icon = Tools.ImageToBase64(tmp, true);
|
||||
}
|
||||
}
|
||||
catch
|
||||
|
Reference in New Issue
Block a user