From d44cd057a405d76f4c21da110fc224db1114a5ad Mon Sep 17 00:00:00 2001 From: status102 <102887808+status102@users.noreply.github.com> Date: Sat, 11 Apr 2026 17:23:27 +0800 Subject: [PATCH] =?UTF-8?q?fix(wpf):=20=E8=87=AA=E5=8A=A8=E6=88=98?= =?UTF-8?q?=E6=96=97=E9=BC=A0=E6=A0=87=E9=95=BF=E6=8C=89=E5=88=86=E9=A1=B5?= =?UTF-8?q?=E6=97=B6,=20=E5=8F=AF=E8=83=BD=E4=BC=9A=E5=8F=8D=E5=A4=8D?= =?UTF-8?q?=E8=A7=A6=E5=8F=91=E5=88=87=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MaaWpfGui/ViewModels/UI/CopilotViewModel.cs | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/MaaWpfGui/ViewModels/UI/CopilotViewModel.cs b/src/MaaWpfGui/ViewModels/UI/CopilotViewModel.cs index 0f007d0829..c708ecc713 100644 --- a/src/MaaWpfGui/ViewModels/UI/CopilotViewModel.cs +++ b/src/MaaWpfGui/ViewModels/UI/CopilotViewModel.cs @@ -44,7 +44,6 @@ using Stylet; using static MaaWpfGui.Helper.CopilotHelper; using static MaaWpfGui.Helper.PathsHelper; using static MaaWpfGui.Models.AsstTasks.AsstCopilotTask; -using static Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties.System; using DataFormats = System.Windows.Forms.DataFormats; using Task = System.Threading.Tasks.Task; @@ -243,6 +242,11 @@ public partial class CopilotViewModel : Screen return; } + if (value == 1 || value == 3) + { + UseCopilotList = false; + } + if (!SetAndNotify(ref _copilotTabIndex, value)) { return; @@ -703,14 +707,7 @@ public partial class CopilotViewModel : Screen [PropertyDependsOn(nameof(CopilotTabIndex))] public bool UseCopilotList { - get { - if (CopilotTabIndex is 1 or 3) - { - return false; - } - return _useCopilotList; - } - + get => _useCopilotList; set { if (value) {