Archived
Changed: site address as icon ID
This commit is contained in:
1 parent
3518084267
commit
2fe74fe29d
2 files changed
+5
-8
No files matched your search
@@ -878,9 +878,9 @@ namespace RyzStudio.Windows.Forms
|
||||
{
|
||||
if (this.IconDatabase == null) return (int)IconSet.Default;
|
||||
if (item == null) return (int)IconSet.Default;
|
||||
if (string.IsNullOrWhiteSpace(item.SiteName)) return (int)IconSet.Default;
|
||||
if (string.IsNullOrWhiteSpace(item.SiteAddress)) return (int)IconSet.Default;
|
||||
|
||||
string iconID = Crypto.GetSHA256Hash(item?.SiteName);
|
||||
string iconID = Crypto.GetSHA256Hash(item?.SiteAddress);
|
||||
|
||||
Image image = this.IconDatabase.FindIcon(iconID);
|
||||
if (image == null)
|
||||
@@ -896,8 +896,6 @@ namespace RyzStudio.Windows.Forms
|
||||
ThreadControl.Add(this, this.ImageList, iconID, image);
|
||||
|
||||
return this.ImageList.Images.IndexOfKey(iconID);
|
||||
|
||||
//return (int)IconSet.Default;
|
||||
}
|
||||
|
||||
//protected int addIcon(BookmarkItemViewModel viewModel) => addIcon(viewModel.ToModel());
|
||||
|
||||
Reference in new issue
Block a user