mirror of
https://github.com/gwdevhub/Daybreak.git
synced 2026-07-21 01:59:49 +00:00
@@ -7,7 +7,6 @@ using Daybreak.Shared.Services.Toolbox;
|
||||
using Daybreak.Shared.Utils;
|
||||
using Microsoft.AspNetCore.Components.Web;
|
||||
using Microsoft.JSInterop;
|
||||
using System.Core.Extensions;
|
||||
using System.Drawing;
|
||||
using System.Extensions;
|
||||
using TrailBlazr.Services;
|
||||
|
||||
@@ -75,6 +75,11 @@ public abstract class BuildTemplateViewModelBase<TViewModel, TView>(
|
||||
|
||||
public void BuildNameChanged(string buildName)
|
||||
{
|
||||
if (this.View is null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
this.ChangeBuildName(buildName);
|
||||
this.RefreshView();
|
||||
}
|
||||
@@ -82,6 +87,11 @@ public abstract class BuildTemplateViewModelBase<TViewModel, TView>(
|
||||
public override sealed async ValueTask ParametersSet(TView view, CancellationToken cancellationToken)
|
||||
{
|
||||
var buildLoad = await this.buildTemplateManager.GetBuild(view.BuildName);
|
||||
if (buildLoad is null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
this.LoadBuild(buildLoad);
|
||||
this.UpdateBuildCode();
|
||||
this.FilterSkillsByProfessionsAndString();
|
||||
|
||||
@@ -28,7 +28,7 @@ public class ExecutablesViewModel(
|
||||
public override ValueTask ParametersSet(ExecutablesView view, CancellationToken cancellationToken)
|
||||
{
|
||||
this.Executables.ClearAnd().AddRange(this.guildWarsExecutableManager.GetExecutableList().Select(s => new ExecutablePath { Path = s, Validating = true, Valid = false }));
|
||||
_ = Task.Factory.StartNew(() => this.ValidateExecutables())
|
||||
_ = Task.Factory.StartNew(this.ValidateExecutables)
|
||||
.ContinueWith(t => this.AutoUpdate(t, view), CancellationToken.None);
|
||||
return base.ParametersSet(view, cancellationToken);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user