From 427b916dd26ccd77ea41e7afc6bd2fe14d0669b3 Mon Sep 17 00:00:00 2001 From: ninemine <1371605831@qq.com> Date: Thu, 4 Sep 2025 16:24:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DFile.Refresh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Convention/[Runtime]/File.cs | 6 ++++++ .../UIComponent/Variant/HierarchyWindow/HierarchyWindow.cs | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Convention/[Runtime]/File.cs b/Convention/[Runtime]/File.cs index 2e47caa..1b51c13 100644 --- a/Convention/[Runtime]/File.cs +++ b/Convention/[Runtime]/File.cs @@ -161,9 +161,15 @@ namespace Convention if (Exists() == false) OriginInfo = null; else if (IsDir()) + { OriginInfo = new DirectoryInfo(FullPath); + FullPath = Path.GetFullPath(FullPath); + } else + { OriginInfo = new FileInfo(FullPath); + FullPath = Path.GetFullPath(FullPath); + } return this; } diff --git a/Convention/[Visual]/UIComponent/Variant/HierarchyWindow/HierarchyWindow.cs b/Convention/[Visual]/UIComponent/Variant/HierarchyWindow/HierarchyWindow.cs index 9a74151..c3acd55 100644 --- a/Convention/[Visual]/UIComponent/Variant/HierarchyWindow/HierarchyWindow.cs +++ b/Convention/[Visual]/UIComponent/Variant/HierarchyWindow/HierarchyWindow.cs @@ -15,7 +15,7 @@ namespace Convention.WindowsUI.Variant private Dictionary AllReferenceItemLinker = new(); /// - /// ��������Լ���Ӧ��tab + /// /// /// ///