From 92757f27146eaac2ff5854eaf617152eb058a2a9 Mon Sep 17 00:00:00 2001 From: Lincoln Date: Sun, 21 Jun 2026 18:11:24 +0800 Subject: [PATCH] =?UTF-8?q?fix(download):=20=E4=BF=AE=E5=A4=8D=E7=A4=BE?= =?UTF-8?q?=E5=8C=BA=E8=B5=84=E6=BA=90=E6=90=9C=E7=B4=A2=E9=A1=B5=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E5=90=8E=E6=94=B6=E8=97=8F=E6=8C=89=E9=92=AE=20hover?= =?UTF-8?q?=20=E5=A4=B1=E6=95=88=20[Composer]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit RefreshFavoriteStatus 误将 ShowFavoriteBtn 设为是否已收藏, PageComp 重新可见时未收藏项的按钮被 Collapsed,导致 hover 无法展示。 Close #3230 Co-authored-by: Cursor --- .../Pages/PageDownload/Comp/MyCompItem.xaml.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Plain Craft Launcher 2/Pages/PageDownload/Comp/MyCompItem.xaml.cs b/Plain Craft Launcher 2/Pages/PageDownload/Comp/MyCompItem.xaml.cs index 13bbbc568..0d59e6e5e 100644 --- a/Plain Craft Launcher 2/Pages/PageDownload/Comp/MyCompItem.xaml.cs +++ b/Plain Craft Launcher 2/Pages/PageDownload/Comp/MyCompItem.xaml.cs @@ -224,7 +224,7 @@ public bool ShowFavoriteBtn } /// - /// 刷新收藏状态 + /// 刷新收藏状态(仅更新图标,不影响 hover 展示逻辑) /// public void RefreshFavoriteStatus() { @@ -232,7 +232,6 @@ public void RefreshFavoriteStatus() var isFavourite = ModComp.CompFavorites.IsFavourite(project.Id); BtnDelete.SvgIcon = isFavourite ? "lucide/heart-filled" : "lucide/heart"; - ShowFavoriteBtn = isFavourite; } #endregion