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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user