diff --git a/Core/Handling/ContextMenuNotification.cs b/Core/Handling/ContextMenuNotification.cs index 62c6b6c5..98448bef 100644 --- a/Core/Handling/ContextMenuNotification.cs +++ b/Core/Handling/ContextMenuNotification.cs @@ -29,7 +29,7 @@ public override void OnBeforeContextMenu(IWebBrowser browserControl, IBrowser br base.OnBeforeContextMenu(browserControl, browser, frame, parameters, model); if (enableCustomMenu){ - if (!string.IsNullOrEmpty(form.CurrentChirpId)){ + if (form.CanViewDetail){ model.AddItem(MenuViewDetail, "View detail"); } diff --git a/Core/Notification/FormNotificationBase.cs b/Core/Notification/FormNotificationBase.cs index a0a637a9..11e38e82 100644 --- a/Core/Notification/FormNotificationBase.cs +++ b/Core/Notification/FormNotificationBase.cs @@ -82,9 +82,10 @@ public bool CanResizeWindow{ private TweetNotification currentNotification; private int pauseCounter; - public string CurrentChirpId => currentNotification?.ChirpId; public string CurrentTweetUrl => currentNotification?.TweetUrl; public string CurrentQuoteUrl => currentNotification?.QuoteUrl; + + public bool CanViewDetail => currentNotification != null && !string.IsNullOrEmpty(currentNotification.ColumnId) && !string.IsNullOrEmpty(currentNotification.ChirpId); public bool IsPaused => pauseCounter > 0; public bool FreezeTimer { get; set; }