// \brief Show CGUIDialogOK dialog, then wait for user to dismiss it. void CGUIDialogOK::ShowAndGetInput(CVariant heading, CVariant text) { CGUIDialogOK *dialog = (CGUIDialogOK *)g_windowManager.GetWindow(WINDOW_DIALOG_OK); if (!dialog) return; dialog->SetHeading(heading); dialog->SetText(text); dialog->Open(); }
// \brief Show CGUIDialogOK dialog, then wait for user to dismiss it. bool CGUIDialogOK::ShowAndGetInput(CVariant heading, CVariant text) { CGUIDialogOK *dialog = g_windowManager.GetWindow<CGUIDialogOK>(WINDOW_DIALOG_OK); if (!dialog) return false; dialog->SetHeading(heading); dialog->SetText(text); dialog->Open(); return dialog->IsConfirmed(); }