feat: close directly if next window is null.

This commit is contained in:
Dong Bin
2025-02-24 19:50:02 +08:00
parent aa4507c9c8
commit dc2cf01b43
5 changed files with 72 additions and 58 deletions

View File

@@ -24,14 +24,14 @@ public partial class SplashViewModel: ObservableObject, IDialogContext
}
else
{
RequestClose?.Invoke(this, null);
RequestClose?.Invoke(this, true);
return false;
}
}
public void Close()
{
RequestClose?.Invoke(this, null);
RequestClose?.Invoke(this, false);
}
public event EventHandler<object?>? RequestClose;