Skip to content

Commit

Permalink
imp - Return immediately if no link in RSS CLI
Browse files Browse the repository at this point in the history
---

We don't need to try to open the article link if it's knowingly empty in
the RSS reader CLI.

---

Type: imp
Breaking: False
Doc Required: False
Backport Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Dec 19, 2024
1 parent a0eec92 commit 5c6d34d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,10 @@ internal void OpenArticleLink(RSSArticle? item)
return;
bool hasLink = !string.IsNullOrEmpty(item.ArticleLink);
if (!hasLink)
{
InfoBoxModalColor.WriteInfoBoxModalColorBack(Translate.DoTranslation("This article doesn't have a link."), KernelColorTools.GetColor(KernelColorType.TuiBoxForeground), KernelColorTools.GetColor(KernelColorType.TuiBoxBackground));
return;
}

// Now, open the host browser
try
Expand Down

0 comments on commit 5c6d34d

Please sign in to comment.