1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-22 15:38:02 +02:00

Split AudacityApp::OnInit() into two parts

This commit is contained in:
Paul Licameli 2020-12-01 21:23:19 -05:00
parent 596032c42f
commit 2cce830601
2 changed files with 6 additions and 0 deletions

@ -1269,6 +1269,11 @@ bool AudacityApp::OnInit()
return false; return false;
} }
return InitPart2();
}
bool AudacityApp::InitPart2()
{
// Make sure the temp dir isn't locked by another process. // Make sure the temp dir isn't locked by another process.
{ {
auto key = auto key =

@ -43,6 +43,7 @@ class AudacityApp final : public wxApp {
AudacityApp(); AudacityApp();
~AudacityApp(); ~AudacityApp();
bool OnInit(void) override; bool OnInit(void) override;
bool InitPart2();
int OnExit(void) override; int OnExit(void) override;
void OnFatalException() override; void OnFatalException() override;
bool OnExceptionInMainLoop() override; bool OnExceptionInMainLoop() override;