From 58bf25ff1605f375e14b09bc90af011e42946443 Mon Sep 17 00:00:00 2001 From: SweetId <2630750+SweetId@users.noreply.github.com> Date: Wed, 11 Oct 2023 23:48:14 -0400 Subject: [PATCH] Add app getter in Window --- include/NazaraEditor/Core/UI/Window.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/NazaraEditor/Core/UI/Window.hpp b/include/NazaraEditor/Core/UI/Window.hpp index 0f17d54..374bf5d 100644 --- a/include/NazaraEditor/Core/UI/Window.hpp +++ b/include/NazaraEditor/Core/UI/Window.hpp @@ -25,6 +25,9 @@ namespace Nz void AddMenuAction(const std::string& path, const std::string& shortcut, ActionCallback callback); void AddMenuSeparator(const std::string& path); + EditorBaseApplication* GetApplication() { return m_application; } + const EditorBaseApplication* GetApplication() const { return m_application; } + protected: void DrawMenus();