mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-18 18:20:39 +08:00
chore: ClearCache 改成 static
This commit is contained in:
@@ -77,9 +77,9 @@ public class IssueReportUserControlModel : PropertyChangedBase
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 清空缓存 包括cache目录和debug目录
|
||||
/// 清空缓存 包括 cache 目录和 debug 目录
|
||||
/// </summary>
|
||||
public void ClearCache()
|
||||
public static void ClearCache()
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user