Platform/AppWindowingComponent: Fix missing initialization of "quit on last window closed"

This commit is contained in:
SirLynix
2023-02-02 13:10:18 +01:00
parent eb74c6ed07
commit 6508b84e5c
2 changed files with 7 additions and 1 deletions

View File

@@ -13,6 +13,12 @@ namespace Nz
return *m_windows.emplace_back(std::make_unique<Window>(std::forward<Args>(args)...));
}
inline AppWindowingComponent::AppWindowingComponent(ApplicationBase& app) :
ApplicationComponent(app),
m_quitOnLastWindowClosed(true)
{
}
inline void AppWindowingComponent::DisableQuitOnLastWindowClosed()
{
return EnableQuitOnLastWindowClosed(false);