Skip to content

Commit

Permalink
Minor changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
navossoc committed Aug 29, 2018
1 parent 4b8d84c commit 776f1d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions YAFD/FaviconDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ private void BgWorker_DoWork(object sender, DoWorkEventArgs e)

// Progress 100%
ReportProgress(progress);
status = String.Format("YAFD: Success: {0} / Not Found: {1} / Error: {2}.", progress.Success, progress.NotFound, progress.Error);
status = string.Format("YAFD: Success: {0} / Not Found: {1} / Error: {2}.", progress.Success, progress.NotFound, progress.Error);

// Prevents inserting duplicate icons
MergeCustomIcons(icons);
Expand All @@ -202,7 +202,7 @@ private void BgWorker_DoWork(object sender, DoWorkEventArgs e)
private void ReportProgress(ProgressInfo progress)
{
logger.SetProgress((uint)progress.Percent);
logger.SetText(String.Format("YAFD: Success: {0} / Not Found: {1} / Error: {2} / Remaining: {3}", progress.Success, progress.NotFound, progress.Error, progress.Remaining), LogStatusType.Info);
logger.SetText(string.Format("YAFD: Success: {0} / Not Found: {1} / Error: {2} / Remaining: {3}", progress.Success, progress.NotFound, progress.Error, progress.Remaining), LogStatusType.Info);
}

private void MergeCustomIcons(PwCustomIcon[] icons)
Expand Down
2 changes: 1 addition & 1 deletion YAFD/FaviconDownloader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ private IEnumerable<Uri> GetIconsUrl(Uri entryUrl, string html)
foreach (Match linkTag in linkTags.Matches(html))
{
// Checks if it has the rel icon attribute
string linkHtml = linkTag.ToString();
string linkHtml = linkTag.Value;
if (relAttribute.IsMatch(linkHtml))
{
// Extract href attribute value
Expand Down

0 comments on commit 776f1d0

Please sign in to comment.