allow null package convert state

This commit is contained in:
DismissedLight
2024-01-03 21:53:13 +08:00
parent dd59302bb3
commit 533c70caaa
2 changed files with 2 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ internal sealed class PackageReplaceStatus
public PackageReplaceStatus(string name)
{
Name = name;
Description = default!;
Description = name;
}
/// <summary>

View File

@@ -225,7 +225,7 @@ internal sealed partial class LaunchGameViewModel : Abstraction.ViewModel
// Always ensure game resources
if (!await gameService.EnsureGameResourceAsync(SelectedScheme, convertProgress).ConfigureAwait(false))
{
infoBarService.Warning(SH.ViewModelLaunchGameEnsureGameResourceFail, dialog.State.Name);
infoBarService.Warning(SH.ViewModelLaunchGameEnsureGameResourceFail, dialog.State?.Name ?? string.Empty);
return;
}
else