From fcd29a0efb4ef2d698ddd774fefe6d80950cf961 Mon Sep 17 00:00:00 2001 From: uye <99072975+ABA2396@users.noreply.github.com> Date: Mon, 19 Jan 2026 15:54:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=A7=BB=E5=8A=A8?= =?UTF-8?q?=E5=B7=B2=E6=89=93=E5=BC=80=E8=AE=BE=E7=BD=AE=E7=9A=84=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E5=90=8E=EF=BC=8C=E5=BD=93=E5=89=8D=E7=9A=84=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E9=9D=A2=E6=9D=BF=E6=97=A0=E6=B3=95=E7=BB=A7=E7=BB=AD?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MaaWpfGui/ViewModels/UI/TaskQueueViewModel.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/MaaWpfGui/ViewModels/UI/TaskQueueViewModel.cs b/src/MaaWpfGui/ViewModels/UI/TaskQueueViewModel.cs index 96c45d4069..ea423a0e59 100644 --- a/src/MaaWpfGui/ViewModels/UI/TaskQueueViewModel.cs +++ b/src/MaaWpfGui/ViewModels/UI/TaskQueueViewModel.cs @@ -155,6 +155,11 @@ public class TaskQueueViewModel : Screen { TaskItemViewModels[i].Index = i; } + + if (TaskSettingVisibilities.CurrentIndex == oldIndex) + { + TaskSettingVisibilities.CurrentIndex = newIndex; + } } else if (e.Action == NotifyCollectionChangedAction.Add) {