File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
Microsoft.Toolkit.Uwp.Notifications/Toasts/Compat/Desktop Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -41,8 +41,15 @@ public static Win32AppInfo Get()
41
41
42
42
string aumid ;
43
43
44
- // If it contains a backslash
45
- if ( appId . Contains ( '\\ ' ) )
44
+ // If the app ID is too long
45
+ if ( appId . Length > AUMID_MAX_LENGTH )
46
+ {
47
+ // Hash the AUMID
48
+ aumid = HashAppId ( appId ) ;
49
+ }
50
+
51
+ // Else if it contains a backslash
52
+ else if ( appId . Contains ( '\\ ' ) )
46
53
{
47
54
// For versions 19042 and older of Windows 10, we can't use backslashes - Issue #3870
48
55
// So we change it to not include those
@@ -54,13 +61,6 @@ public static Win32AppInfo Get()
54
61
aumid = appId ;
55
62
}
56
63
57
- // If the AUMID is too long
58
- if ( aumid . Length > AUMID_MAX_LENGTH )
59
- {
60
- // Hash the AUMID
61
- aumid = HashAppId ( aumid ) ;
62
- }
63
-
64
64
// Then try to get the shortcut (for display name and icon)
65
65
IShellItem shortcutItem = null ;
66
66
try
You can’t perform that action at this time.
0 commit comments