Make "No ROMs found" message identical to Win32

This commit is contained in:
Cacodemon345
2021-12-10 15:36:55 +06:00
parent ba2dbe724f
commit 7d6e46d90a
3 changed files with 5 additions and 2 deletions

View File

@@ -63,7 +63,9 @@ int ui_msgbox_header(int flags, void *header, void* message) {
// any error in early init
if (main_window == nullptr) {
QMessageBox::critical(nullptr, hdr, msg);
QMessageBox msgBox(QMessageBox::Icon::Critical, hdr, msg);
msgBox.setTextFormat(Qt::TextFormat::RichText);
msgBox.exec();
} else {
// else scope it to main_window
main_window->showMessage(hdr, msg);