From 02e0e39e47fd77f6fe8b7eac4e22775d3ef92ec5 Mon Sep 17 00:00:00 2001 From: uye <2396806385@qq.com> Date: Fri, 21 Apr 2023 18:07:46 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=B0=86=E5=A4=9A=E8=AF=AD=E8=A8=80?= =?UTF-8?q?=E7=9A=84=E5=88=97=E8=A1=A8=E7=8A=B6=E6=80=81=E7=BB=9F=E4=B8=80?= =?UTF-8?q?=E5=82=A8=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MaaWpfGui/ViewModels/DragItemViewModel.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MaaWpfGui/ViewModels/DragItemViewModel.cs b/src/MaaWpfGui/ViewModels/DragItemViewModel.cs index b7850a350b..01da964dd5 100644 --- a/src/MaaWpfGui/ViewModels/DragItemViewModel.cs +++ b/src/MaaWpfGui/ViewModels/DragItemViewModel.cs @@ -48,7 +48,7 @@ namespace MaaWpfGui.ViewModels Name = name; OriginalName = originalName; _storageKey = storageKey; - IsChecked = Convert.ToBoolean(ConfigurationHelper.GetCheckedStorage(storageKey, name, bool.TrueString)); + IsChecked = Convert.ToBoolean(ConfigurationHelper.GetCheckedStorage(storageKey, originalName, bool.TrueString)); } private string _originalName; @@ -84,7 +84,7 @@ namespace MaaWpfGui.ViewModels set { SetAndNotify(ref _isChecked, value); - ConfigurationHelper.SetCheckedStorage(_storageKey, Name, value.ToString()); + ConfigurationHelper.SetCheckedStorage(_storageKey, OriginalName, value.ToString()); } }