fix achievement archive creation

This commit is contained in:
DismissedLight
2023-08-19 20:23:30 +08:00
parent 75938c3ede
commit 6f1c7b250e

View File

@@ -187,7 +187,7 @@ internal sealed partial class AchievementViewModel : Abstraction.ViewModel, INav
[Command("AddArchiveCommand")]
private async Task AddArchiveAsync()
{
if (Archives is null)
if (Archives is not null)
{
AchievementArchiveCreateDialog dialog = await contentDialogFactory.CreateInstanceAsync<AchievementArchiveCreateDialog>().ConfigureAwait(false);
(bool isOk, string name) = await dialog.GetInputAsync().ConfigureAwait(false);