Fix notification for PIE errors never going away and not dismissable. Follow up to

#jira UE-113132
#lockdown  simon.tourangeau

#ROBOMERGE-SOURCE: CL 15976654 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v787-15839533)

[CL 15989383 by matt kuhlenschmidt in ue5-main branch]
This commit is contained in:
matt kuhlenschmidt
2021-04-13 10:11:47 -04:00
parent 269daf907a
commit a4e36d7337

View File

@@ -315,12 +315,12 @@ void FMessageLogListingViewModel::NotifyIfAnyMessages( const FText& Message, EMe
{
int32 NotificationId = NextNotificationId++;
ErrorNotification.bFireAndForget = false;
ErrorNotification.bFireAndForget = true;
ErrorNotification.bUseThrobber = false;
ErrorNotification.FadeOutDuration = 0.f;
ErrorNotification.ExpireDuration = 0.f;
ErrorNotification.ButtonDetails.Add(FNotificationButtonInfo(LOCTEXT("DismissMessageButton", "Dismiss"), FText(), FSimpleDelegate::CreateSP(this, &FMessageLogListingViewModel::DismissNotification, NotificationId)));
ErrorNotification.ButtonDetails.Add(FNotificationButtonInfo(LOCTEXT("ShowMessageLogButton", "Show Message Log"), FText(), FSimpleDelegate::CreateSP(this, &FMessageLogListingViewModel::OpenMessageLogFromNotification, NotificationId)));
ErrorNotification.ExpireDuration = 15.f;
ErrorNotification.ButtonDetails.Add(FNotificationButtonInfo(LOCTEXT("DismissMessageButton", "Dismiss"), FText(), FSimpleDelegate::CreateSP(this, &FMessageLogListingViewModel::DismissNotification, NotificationId), SNotificationItem::CS_Fail));
ErrorNotification.ButtonDetails.Add(FNotificationButtonInfo(LOCTEXT("ShowMessageLogButton", "Show Message Log"), FText(), FSimpleDelegate::CreateSP(this, &FMessageLogListingViewModel::OpenMessageLogFromNotification, NotificationId), SNotificationItem::CS_Fail));
TSharedPtr<SNotificationItem> NewNotificationItem = FSlateNotificationManager::Get().AddNotification(ErrorNotification);
if (NewNotificationItem.IsValid())