Remove userdialog playtime & fix screenshot search worldName

This commit is contained in:
Natsumi
2025-02-25 05:58:23 +13:00
parent a5a5e6f892
commit dd54bd3c05
6 changed files with 57 additions and 21 deletions
@@ -101,7 +101,10 @@ namespace VRCX
break;
case ScreenshotSearchType.WorldName:
if (metadata.World.Name.IndexOf(query, StringComparison.OrdinalIgnoreCase) != -1)
if (metadata.World.Name == null)
continue;
if (metadata.World.Name.Contains(query, StringComparison.OrdinalIgnoreCase))
result.Add(metadata);
break;
@@ -107,7 +107,7 @@ namespace VRCX
/// <summary>
/// The display name of the user.
/// </summary>
public string DisplayName { get; set; }
public string? DisplayName { get; set; }
}
public class WorldDetail
@@ -120,7 +120,7 @@ namespace VRCX
/// <summary>
/// The name of the world.
/// </summary>
public string Name { get; set; }
public string? Name { get; set; }
/// <summary>
/// The full ID of the game instance.