Made it compile as GUI again on Windows and made the help message a message box.

This commit is contained in:
OBattler
2025-04-21 13:41:58 +02:00
parent c9ee4f3cc8
commit 11a55708fb
3 changed files with 37 additions and 26 deletions

View File

@@ -141,7 +141,14 @@ ui_msgbox_header(int flags, void *header, void *message)
// any error in early init
if (main_window == nullptr) {
QMessageBox msgBox(QMessageBox::Icon::Critical, hdr, msg);
auto msgicon = QMessageBox::Icon::Critical;
if (flags & MBX_INFO)
msgicon = QMessageBox::Icon::Information;
else if (flags & MBX_QUESTION)
msgicon = QMessageBox::Icon::Question;
else if (flags & MBX_WARNING)
msgicon = QMessageBox::Icon::Warning;
QMessageBox msgBox(msgicon, hdr, msg);
msgBox.exec();
} else {
// else scope it to main_window