19 {
20 FNotificationInfo Info( LOCTEXT("RestartRequiredTitle", "Restart required to apply new settings") );
21
22
23 Info.ButtonDetails.Add(FNotificationButtonInfo(
24 LOCTEXT("RestartNow", "Restart Now"),
25 LOCTEXT("RestartNowToolTip", "Restart now to finish applying your new settings."),
27 );
28 Info.ButtonDetails.Add(FNotificationButtonInfo(
29 LOCTEXT("RestartLater", "Restart Later"),
30 LOCTEXT("RestartLaterToolTip", "Dismiss this notificaton without restarting. Some new settings will not be applied."),
32 );
33
34
35 Info.bFireAndForget = false;
36
37
38 Info.WidthOverride = 300.0f;
39
40 Info.bUseLargeFont = false;
41 Info.bUseThrobber = false;
42 Info.bUseSuccessFailIcons = false;
43
44
45 NotificationPtr = FSlateNotificationManager::Get().AddNotification(Info);
47
48 if (NotificationPin.IsValid())
49 {
50 NotificationPin->SetCompletionState(SNotificationItem::CS_Pending);
51 }
52 }