Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/engine/client/ClientApplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ extern SDL_Window *window;
#endif
#endif

static Cvar::Cvar<bool> client_errorPopup("client.errorPopup", "Enable the error popup window", Cvar::NONE, true);

namespace Application {

class ClientApplication : public Application {
Expand Down Expand Up @@ -126,7 +128,7 @@ class ClientApplication : public Application {

void Shutdown(bool error, Str::StringRef message) override {
#if defined(_WIN32) || defined(BUILD_GRAPHICAL_CLIENT)
if (error) {
if (error && client_errorPopup.Get()) {
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, PRODUCT_NAME, message.c_str(), window);
}
#endif
Expand Down