Skip to content

Commit

Permalink
更改源图片后清空缓存.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoweijie committed May 28, 2021
1 parent 994b3e3 commit 1354136
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Main/Service/TaskExcuteService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace Main.Service
public class TaskExcuteService : ImagePhash
{
//bool state { get; set; } = false;
public static ConcurrentDictionary<int, Digest> keyValuePairs { get; set; } = new();
//public static ConcurrentDictionary<int, Digest> keyValuePairs { get; set; } = new();
public static ConcurrentDictionary<string, Digest> keyValueGameType { get; set; } = new();


Expand Down
3 changes: 2 additions & 1 deletion Main/mainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,10 @@ private void btnPictrue_Click(object sender, EventArgs e)
PicGetHelper.GetP(bmp, (i+1).ToString(), gameType);
list.Add(bmp);
}
TaskExcuteService.keyValueGameType.Clear();
//foreach (var item in windowInfos)
//{

//}
bool contrastPic = TaskExcuteService.StartTaskForPHash(list,gameType);

Expand Down

0 comments on commit 1354136

Please sign in to comment.