From 4d00a1b7eb9ea75b219d27cf3acfe6bb3d41f6e8 Mon Sep 17 00:00:00 2001 From: uye <2396806385@qq.com> Date: Fri, 27 Jan 2023 22:06:39 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=9C=AA=E4=BD=BF=E7=94=A8=E8=87=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E5=85=B3=E5=8D=A1=E6=97=B6=E4=B8=8D=E5=AF=B9?= =?UTF-8?q?=E5=85=B3=E5=8D=A1=E9=80=89=E6=8B=A9=E4=B8=8E=E5=89=A9=E4=BD=99?= =?UTF-8?q?=E7=90=86=E6=99=BA=E5=AD=97=E7=AC=A6=E4=B8=B2=E8=BF=9B=E8=A1=8C?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MaaWpfGui/Main/TaskQueueViewModel.cs | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/MaaWpfGui/Main/TaskQueueViewModel.cs b/src/MaaWpfGui/Main/TaskQueueViewModel.cs index 22550662f3..b52015cd9e 100644 --- a/src/MaaWpfGui/Main/TaskQueueViewModel.cs +++ b/src/MaaWpfGui/Main/TaskQueueViewModel.cs @@ -1440,7 +1440,11 @@ namespace MaaWpfGui get => _stage1; set { - value = ToUpperAndCheckStage(value); + if (CustomStageCode) + { + value = ToUpperAndCheckStage(value); + } + SetAndNotify(ref _stage1, value); SetFightParams(); ViewStatusStorage.Set("MainFunction.Stage1", value); @@ -1458,7 +1462,6 @@ namespace MaaWpfGui get => _stage2; set { - value = ToUpperAndCheckStage(value); SetAndNotify(ref _stage2, value); SetFightParams(); ViewStatusStorage.Set("MainFunction.Stage2", value); @@ -1476,7 +1479,6 @@ namespace MaaWpfGui get => _stage3; set { - value = ToUpperAndCheckStage(value); SetAndNotify(ref _stage3, value); SetFightParams(); ViewStatusStorage.Set("MainFunction.Stage3", value); @@ -1528,7 +1530,11 @@ namespace MaaWpfGui set { - value = ToUpperAndCheckStage(value); + if (CustomStageCode) + { + value = ToUpperAndCheckStage(value); + } + SetAndNotify(ref _remainingSanityStage, value); SetFightRemainingSanityParams(); ViewStatusStorage.Set("Fight.RemainingSanityStage", value);