chore: ClearCache 改成 static

This commit is contained in:
uye
2026-02-09 23:50:58 +08:00
parent e6bbb193ac
commit 946b1dfe2e
2 changed files with 4 additions and 3 deletions

View File

@@ -77,9 +77,9 @@ public class IssueReportUserControlModel : PropertyChangedBase
}
/// <summary>
/// 清空缓存 包括cache目录和debug目录
/// 清空缓存 包括 cache 目录和 debug 目录
/// </summary>
public void ClearCache()
public static void ClearCache()
{
try
{

View File

@@ -99,7 +99,8 @@
Grid.Column="1"
Width="Auto"
Margin="5,2"
Command="{s:Action ClearCache}"
Command="{s:Action ClearCache,
Target={x:Type settings_vms:IssueReportUserControlModel}}"
Content="{DynamicResource ClearCache}" />
</Grid>
</StackPanel>