Skip to content

Commit

Permalink
Merge pull request #76361 from RenechCDDA/cleanup_loading_screen_on_fail
Browse files Browse the repository at this point in the history
Cleanup loading screen when loading fails
  • Loading branch information
Maleclypse authored Sep 11, 2024
2 parents 9b1ab0b + b699148 commit 3f2229b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/debug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include "filesystem.h"
#include "get_version.h"
#include "input.h"
#include "loading_ui.h"
#include "mod_manager.h"
#include "options.h"
#include "output.h"
Expand Down Expand Up @@ -311,6 +312,8 @@ static void debug_error_prompt(
if( !force && ignored_messages.count( msg_key ) > 0 ) {
return;
}
// gui loading screen might be drawing an image, we need to clean it up
loading_ui::done();

std::string formatted_report =
string_format( // developer-facing error report. INTENTIONALLY UNTRANSLATED!
Expand Down

0 comments on commit 3f2229b

Please sign in to comment.