mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-16 06:40:17 +00:00
Define devconsole only when ENABLE_SCRIPTING is on
This commit is contained in:
parent
128ba90394
commit
ebec853a54
@ -90,8 +90,10 @@ public:
|
||||
MainWindow::MainWindow()
|
||||
: m_mode(NormalMode)
|
||||
, m_homeView(nullptr)
|
||||
, m_devConsoleView(nullptr)
|
||||
, m_scalePanic(nullptr)
|
||||
#ifdef ENABLE_SCRIPTING
|
||||
, m_devConsoleView(nullptr)
|
||||
#endif
|
||||
{
|
||||
// Load all menus by first time.
|
||||
AppMenus::instance()->reload();
|
||||
@ -154,11 +156,14 @@ MainWindow::~MainWindow()
|
||||
{
|
||||
delete m_scalePanic;
|
||||
|
||||
#ifdef ENABLE_SCRIPTING
|
||||
if (m_devConsoleView) {
|
||||
if (m_devConsoleView->parent())
|
||||
m_workspace->removeView(m_devConsoleView);
|
||||
delete m_devConsoleView;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (m_homeView) {
|
||||
if (m_homeView->parent())
|
||||
m_workspace->removeView(m_homeView);
|
||||
|
@ -114,9 +114,11 @@ namespace app {
|
||||
Workspace* m_workspace;
|
||||
PreviewEditorWindow* m_previewEditor;
|
||||
HomeView* m_homeView;
|
||||
DevConsoleView* m_devConsoleView;
|
||||
Notifications* m_notifications;
|
||||
INotificationDelegate* m_scalePanic;
|
||||
#ifdef ENABLE_SCRIPTING
|
||||
DevConsoleView* m_devConsoleView;
|
||||
#endif
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user