Archived
Added: update icon + progress bar
This commit is contained in:
1 parent
90473e092d
commit
f56072eebc
18 files changed
+1125
-55
No files matched your search
@@ -880,7 +880,7 @@ namespace RyzStudio.Windows.Forms
|
||||
if (item == null) return (int)IconSet.Default;
|
||||
if (string.IsNullOrWhiteSpace(item.SiteAddress)) return (int)IconSet.Default;
|
||||
|
||||
string iconID = Crypto.GetSHA256Hash(item?.SiteAddress);
|
||||
string iconID = item?.ToHash();
|
||||
|
||||
Image image = this.IconDatabase.FindIcon(iconID);
|
||||
if (image == null)
|
||||
@@ -888,10 +888,7 @@ namespace RyzStudio.Windows.Forms
|
||||
return (int)IconSet.Default;
|
||||
}
|
||||
|
||||
if (this.ImageList.Images.ContainsKey(iconID))
|
||||
{
|
||||
this.ImageList.Images.RemoveByKey(iconID);
|
||||
}
|
||||
if (this.ImageList.Images.ContainsKey(iconID)) this.ImageList.Images.RemoveByKey(iconID);
|
||||
|
||||
ThreadControl.Add(this, this.ImageList, iconID, image);
|
||||
|
||||
|
||||
Reference in new issue
Block a user