feat: Disable error dialog in headless environments for SdlWindowService

This commit is contained in:
2026-01-04 13:48:07 +00:00
parent dc0c9bfebe
commit 2869b552a2

View File

@@ -35,11 +35,12 @@ void ThrowSdlErrorIfFailed(bool success, const char* context) {
}
void ShowErrorDialog(const char* title, const std::string& message) {
SDL_ShowSimpleMessageBox(
SDL_MESSAGEBOX_ERROR,
title,
message.c_str(),
nullptr);
// Disabled for headless environments
// SDL_ShowSimpleMessageBox(
// SDL_MESSAGEBOX_ERROR,
// title,
// message.c_str(),
// nullptr);
}
} // namespace