mirror of
https://github.com/terrymacdonald/DisplayMagician.git
synced 2024-08-30 18:32:20 +00:00
Fixed Bitmap processing for Shortcuts
The Bitmap processing wasm't working in the listitemview. Traced it to a problem with a missing GenerateThumbnailView call. Also adjusted when the save to icon cache happens so that it is part of the ShortcutItem and is called when a new shortcut is created. This saves times.
This commit is contained in:
@ -117,7 +117,7 @@ namespace HeliosPlus
|
||||
if (ContainsShortcut(shortcut))
|
||||
{
|
||||
// Generate the Shortcut Icon ready to be used
|
||||
SaveShortcutIconToCache(shortcut);
|
||||
//shortcut.SaveShortcutIconToCache();
|
||||
|
||||
// Save the shortcuts JSON as it's different
|
||||
SaveShortcuts();
|
||||
@ -374,6 +374,7 @@ namespace HeliosPlus
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
try
|
||||
{
|
||||
var json = JsonConvert.SerializeObject(_allShortcuts, Formatting.Indented, new JsonSerializerSettings
|
||||
@ -401,9 +402,11 @@ namespace HeliosPlus
|
||||
return false;
|
||||
}
|
||||
|
||||
private static void SaveShortcutIconToCache(ShortcutItem shortcut)
|
||||
/* private static void SaveShortcutIconToCache(ShortcutItem shortcut)
|
||||
{
|
||||
|
||||
// Force the creation of the ShortcutBitmap
|
||||
|
||||
// Only add the rest of the options if the permanence is temporary
|
||||
if (shortcut.Permanence == ShortcutPermanence.Temporary)
|
||||
{
|
||||
@ -458,7 +461,7 @@ namespace HeliosPlus
|
||||
shortcutIcon = shortcut.ProfileToUse.ProfileIcon.ToIcon();
|
||||
shortcutIcon.Save(shortcut.SavedShortcutIconCacheFilename, MultiIconFormat.ICO);
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
|
||||
// ReSharper disable once CyclomaticComplexity
|
||||
|
Reference in New Issue
Block a user