Support custom popups in attach bots.

This commit is contained in:
John Preston
2022-07-07 08:39:33 +04:00
parent e954871cb9
commit c1e7e63677
6 changed files with 169 additions and 37 deletions

View File

@@ -333,10 +333,26 @@ QString UiIntegration::phraseButtonOk() {
return tr::lng_box_ok(tr::now);
}
QString UiIntegration::phraseButtonClose() {
return tr::lng_close(tr::now);
}
QString UiIntegration::phraseButtonCancel() {
return tr::lng_cancel(tr::now);
}
QString UiIntegration::phrasePanelCloseWarning() {
return tr::lng_bot_close_warning_title(tr::now);
}
QString UiIntegration::phrasePanelCloseUnsaved() {
return tr::lng_bot_close_warning(tr::now);
}
QString UiIntegration::phrasePanelCloseAnyway() {
return tr::lng_bot_close_warning_sure(tr::now);
}
bool OpenGLLastCheckFailed() {
return QFile::exists(OpenGLCheckFilePath());
}