fix legacy icon resource name

This commit is contained in:
Kang Yu 2024-02-03 14:23:54 -08:00
parent 163996b98f
commit 66460e2de8
4 changed files with 24 additions and 5 deletions

View file

@ -242,9 +242,9 @@ namespace PersistentWindows.SystrayShell
AppdataFolder = appDataFolder;
// default icons
IdleIcon = legacy_icon ? Properties.Resources.pwIconLegacy : Properties.Resources.pwIcon;
IdleIcon = legacy_icon ? Properties.Resources.pwIcon2 : Properties.Resources.pwIcon;
var iconHandle = Properties.Resources.pwIconBusy.GetHicon();
BusyIcon = legacy_icon ? Properties.Resources.pwIconBusyLegacy : System.Drawing.Icon.FromHandle(iconHandle);
BusyIcon = legacy_icon ? Properties.Resources.pwIconBusy2 : System.Drawing.Icon.FromHandle(iconHandle);
iconHandle = Properties.Resources.pwIconUpdate.GetHicon();
UpdateIcon = System.Drawing.Icon.FromHandle(iconHandle);