修复分组设置生成检测池后下一步按钮不刷新
Pool 属性 setter 只做 SetProperty,未触发 UpdateNavigationState, 而生成检测池时 CurrentStage 赋值前后相同不会触发导航状态刷新, 导致分组变蓝后 CanGoNext 停留在旧值,下一步按钮无法点击。 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -121,7 +121,11 @@ namespace XplorePlane.ViewModels.Inspection.TaskWizard
|
||||
public InspectionPool? Pool
|
||||
{
|
||||
get => _pool;
|
||||
set => SetProperty(ref _pool, value);
|
||||
set
|
||||
{
|
||||
if (SetProperty(ref _pool, value))
|
||||
UpdateNavigationState();
|
||||
}
|
||||
}
|
||||
|
||||
private CalibrationResult? _taskCalibrationResult;
|
||||
@@ -359,12 +363,12 @@ namespace XplorePlane.ViewModels.Inspection.TaskWizard
|
||||
|
||||
public DelegateCommand LoadWorkpieceCommand { get; }
|
||||
public DelegateCommand ApplyPipelineCommand { get; }
|
||||
public DelegateCommand RunBgaDetectionCommand { get; }
|
||||
public DelegateCommand GeneratePoolCommand { get; }
|
||||
public DelegateCommand ApplyBubbleParametersCommand { get; }
|
||||
public DelegateCommand RunCalibrationCommand { get; }
|
||||
public DelegateCommand StartScanningCommand { get; }
|
||||
public DelegateCommand SavePlanCommand { get; }
|
||||
public DelegateCommand RunBgaDetectionCommand { get; } //bga识别
|
||||
public DelegateCommand GeneratePoolCommand { get; } //生成检测池
|
||||
public DelegateCommand ApplyBubbleParametersCommand { get; } //应用气孔参数
|
||||
public DelegateCommand RunCalibrationCommand { get; } //校准
|
||||
public DelegateCommand StartScanningCommand { get; } //开始扫描
|
||||
public DelegateCommand SavePlanCommand { get; } //保存计划
|
||||
public DelegateCommand GoNextCommand { get; }
|
||||
public DelegateCommand GoBackCommand { get; }
|
||||
public DelegateCommand CloseWizardCommand { get; }
|
||||
|
||||
Reference in New Issue
Block a user