Flush options before restarting so that language changes actually apply
Originally committed to SVN as r6892.
This commit is contained in:
parent
a51de67d68
commit
03b1b8e1c0
1 changed files with 3 additions and 0 deletions
|
@ -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() + "\"");
|
||||||
|
|
Loading…
Reference in a new issue