Skip to content

Commit e1aca92

Browse files
LanYun2022Copilot
andauthored
Update ContextMenuManager/Methods/BackupHelper.cs
Co-authored-by: Copilot <[email protected]>
1 parent 6d527a8 commit e1aca92

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ContextMenuManager/Methods/BackupHelper.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1470,7 +1470,9 @@ static BackupList()
14701470

14711471
private static string GetLookupKey(Scenes scene, string keyName, BackupItemType type)
14721472
{
1473-
return $"{scene}|{keyName}|{type}";
1473+
var normalizedKeyName = keyName ?? string.Empty;
1474+
var encodedKeyName = Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(normalizedKeyName));
1475+
return $"{scene}|{encodedKeyName}|{type}";
14741476
}
14751477

14761478
public static BackupItem GetItem(Scenes scene, string keyName, BackupItemType type)

0 commit comments

Comments
 (0)