Flush options before restarting so that language changes actually apply

Originally committed to SVN as r6892.
This commit is contained in:
Thomas Goyne 2012-06-08 21:20:21 +00:00
parent a51de67d68
commit 03b1b8e1c0

View file

@ -57,6 +57,7 @@
#endif #endif
#include "compat.h" #include "compat.h"
#include "main.h"
wxString MakeRelativePath(wxString _path, wxString reference) { wxString MakeRelativePath(wxString _path, wxString reference) {
if (_path.empty() || _path[0] == '?') return _path; if (_path.empty() || _path[0] == '?') return _path;
@ -275,6 +276,8 @@ int AegiStringToFix(const wxString &str,size_t decimalPlaces,int start,int end)
} }
void RestartAegisub() { void RestartAegisub() {
config::opt->Flush();
#if defined(__WXMSW__) #if defined(__WXMSW__)
wxStandardPaths stand; wxStandardPaths stand;
wxExecute("\"" + stand.GetExecutablePath() + "\""); wxExecute("\"" + stand.GetExecutablePath() + "\"");