Reinitialize the crash error message after the UI language is selected
This commit is contained in:
parent
61b19a17e8
commit
4b6946dcec
1 changed files with 5 additions and 3 deletions
|
@ -104,6 +104,9 @@ AegisubApp::AegisubApp() {
|
||||||
|
|
||||||
wxDEFINE_EVENT(EVT_CALL_THUNK, wxThreadEvent);
|
wxDEFINE_EVENT(EVT_CALL_THUNK, wxThreadEvent);
|
||||||
|
|
||||||
|
/// Message displayed when an exception has occurred.
|
||||||
|
static wxString exception_message = "Oops, Aegisub has crashed!\n\nAn attempt has been made to save a copy of your file to:\n\n%s\n\nAegisub will now close.";
|
||||||
|
|
||||||
/// @brief Gets called when application starts.
|
/// @brief Gets called when application starts.
|
||||||
/// @return bool
|
/// @return bool
|
||||||
bool AegisubApp::OnInit() {
|
bool AegisubApp::OnInit() {
|
||||||
|
@ -233,6 +236,8 @@ bool AegisubApp::OnInit() {
|
||||||
}
|
}
|
||||||
locale.Init(lang);
|
locale.Init(lang);
|
||||||
|
|
||||||
|
exception_message = _("Oops, Aegisub has crashed!\n\nAn attempt has been made to save a copy of your file to:\n\n%s\n\nAegisub will now close.");
|
||||||
|
|
||||||
// Load plugins
|
// Load plugins
|
||||||
RegisterBuiltInPlugins();
|
RegisterBuiltInPlugins();
|
||||||
|
|
||||||
|
@ -310,9 +315,6 @@ int AegisubApp::OnExit() {
|
||||||
return wxApp::OnExit();
|
return wxApp::OnExit();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Message displayed when an exception has occurred.
|
|
||||||
const static wxString exception_message = _("Oops, Aegisub has crashed!\n\nAn attempt has been made to save a copy of your file to:\n\n%s\n\nAegisub will now close.");
|
|
||||||
|
|
||||||
static void UnhandledExeception(bool stackWalk, agi::Context *c) {
|
static void UnhandledExeception(bool stackWalk, agi::Context *c) {
|
||||||
#if (!defined(_DEBUG) || defined(WITH_EXCEPTIONS)) && (wxUSE_ON_FATAL_EXCEPTION+0)
|
#if (!defined(_DEBUG) || defined(WITH_EXCEPTIONS)) && (wxUSE_ON_FATAL_EXCEPTION+0)
|
||||||
if (c->ass && c->subsController) {
|
if (c->ass && c->subsController) {
|
||||||
|
|
Loading…
Reference in a new issue