1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-17 08:17:59 +01:00

Don't use AudacityApp where you only need wxApp...

... I want to have fewer inclusions of AudacityApp.h.  More work on removing
them will happen in the next version.
This commit is contained in:
Paul Licameli
2019-04-26 11:47:33 -04:00
parent 21a1260f91
commit 544d9aa580
5 changed files with 5 additions and 8 deletions

View File

@@ -39,7 +39,6 @@ It forwards the actual work of doing the commands to the ScreenshotCommand.
#include <wx/tglbtn.h>
#include <wx/window.h>
#include "AudacityApp.h"
#include "Project.h"
#include "Prefs.h"
#include "toolbars/ToolManager.h"
@@ -114,7 +113,7 @@ ScreenFramePtr mFrame;
void OpenScreenshotTools()
{
if (!mFrame) {
auto parent = wxGetApp().GetTopWindow();
auto parent = wxTheApp->GetTopWindow();
if (!parent) {
wxASSERT(false);
return;