Save icons using GUID filename

This commit is contained in:
Coenraad Stijne
2014-07-19 14:31:19 +02:00
parent a5d63bc383
commit 10204a4526
3 changed files with 7 additions and 5 deletions

View File

@@ -51,9 +51,9 @@ namespace Wox.Plugin.SystemPlugins.ControlPanel
foreach (ControlPanelItem item in controlPanelItems)
{
if (!File.Exists(iconFolder + item.LocalizedString + fileType) && item.Icon != null)
if (!File.Exists(iconFolder + item.GUID + fileType) && item.Icon != null)
{
item.Icon.ToBitmap().Save(iconFolder + item.LocalizedString + fileType);
item.Icon.ToBitmap().Save(iconFolder + item.GUID + fileType);
}
}
}
@@ -75,7 +75,7 @@ namespace Wox.Plugin.SystemPlugins.ControlPanel
Title = item.LocalizedString,
SubTitle = item.InfoTip,
Score = item.Score,
IcoPath = "Images\\ControlPanelIcons\\" + item.LocalizedString + fileType,
IcoPath = "Images\\ControlPanelIcons\\" + item.GUID + fileType,
Action = e =>
{
try