mirror of
https://github.com/terrymacdonald/DisplayMagician.git
synced 2024-08-30 18:32:20 +00:00
Fixed exceprion with no game shortcut
Fixes #25. When you attempted to create a shortcut that didnt run a game or executable, the program would save the shortcut, but would crash when trying to show it in the Shortcut library. This was because the _shortcutBitmap wsn't being populated when no game or executable was chosen. This has been fixed now, as it will use the profile bitmap as the shortcut bitmap in these instances.
This commit is contained in:
parent
9c00081d7a
commit
764d759e10
@ -732,13 +732,8 @@ namespace DisplayMagician
|
|||||||
|
|
||||||
// Now we need to find and populate the profileUuid
|
// Now we need to find and populate the profileUuid
|
||||||
_profileUuid = profile.UUID;
|
_profileUuid = profile.UUID;
|
||||||
|
|
||||||
_originalBitmap = profile.ProfileBitmap;
|
_originalBitmap = profile.ProfileBitmap;
|
||||||
|
_shortcutBitmap = profile.ProfileBitmap;
|
||||||
// We create the ShortcutBitmap from the OriginalBitmap
|
|
||||||
// (We only do it if there is a valid profile)
|
|
||||||
//if (_profileToUse is ProfileItem)
|
|
||||||
// _shortcutBitmap = ToBitmapOverlay(_originalBitmap, _profileToUse.ProfileTightestBitmap, 256, 256);
|
|
||||||
|
|
||||||
ReplaceShortcutIconInCache();
|
ReplaceShortcutIconInCache();
|
||||||
RefreshValidity();
|
RefreshValidity();
|
||||||
|
Loading…
Reference in New Issue
Block a user