mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.git
synced 2025-11-19 21:02:53 +08:00
remove status when game exited
This commit is contained in:
@@ -14,5 +14,8 @@ internal sealed class LaunchExecutionStatusProgressHandler : ILaunchExecutionDel
|
||||
context.Progress = progressFactory.CreateForMainThread<LaunchStatus>(status => statusOptions.LaunchStatus = status);
|
||||
|
||||
await next().ConfigureAwait(false);
|
||||
|
||||
// Clear status
|
||||
context.Progress.Report(default!);
|
||||
}
|
||||
}
|
||||
@@ -16,7 +16,7 @@ internal sealed partial class LaunchExecutionContext
|
||||
private readonly LaunchOptions options;
|
||||
|
||||
[SuppressMessage("", "SH007")]
|
||||
public LaunchExecutionContext(IServiceProvider serviceProvider,IViewModelSupportLaunchExecution viewModel, LaunchScheme? scheme, GameAccount? account)
|
||||
public LaunchExecutionContext(IServiceProvider serviceProvider, IViewModelSupportLaunchExecution viewModel, LaunchScheme? scheme, GameAccount? account)
|
||||
: this(serviceProvider)
|
||||
{
|
||||
ViewModel = viewModel;
|
||||
|
||||
Reference in New Issue
Block a user