diff options
Diffstat (limited to 'RealtimeSync/application.cpp')
-rw-r--r-- | RealtimeSync/application.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/RealtimeSync/application.cpp b/RealtimeSync/application.cpp index 1efed1a1..61c9ca96 100644 --- a/RealtimeSync/application.cpp +++ b/RealtimeSync/application.cpp @@ -77,8 +77,7 @@ bool Application::OnInit() ::TransformProcessType(&psn, kProcessTransformToForegroundApplication); //behave like an application bundle, even when the app is not packaged (yet) #endif - warn_static("fix") - SetAppName(L"FreeFileSync"); //abuse FFS's name, to have "GetUserDataDir()" return the same directory + SetAppName(L"FreeFileSync"); //reuse FFS's name, to have "GetUserDataDir()/GetResourcesDir()" return the same directory in ffs_paths.cpp //do not call wxApp::OnInit() to avoid using default commandline parser @@ -91,6 +90,13 @@ bool Application::OnInit() } +int Application::OnExit() +{ + releaseWxLocale(); + return wxApp::OnExit(); +} + + void Application::onEnterEventLoop(wxEvent& event) { Disconnect(EVENT_ENTER_EVENT_LOOP, wxEventHandler(Application::onEnterEventLoop), nullptr, this); @@ -162,4 +168,3 @@ int Application::OnRun() return FFS_RC_SUCCESS; //program's return code } - |