Platform/AppWindowingComponent: Fix missing initialization of "quit on last window closed"
This commit is contained in:
parent
eb74c6ed07
commit
6508b84e5c
|
|
@ -17,7 +17,7 @@ namespace Nz
|
||||||
class NAZARA_PLATFORM_API AppWindowingComponent : public ApplicationComponent
|
class NAZARA_PLATFORM_API AppWindowingComponent : public ApplicationComponent
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
using ApplicationComponent::ApplicationComponent;
|
inline AppWindowingComponent(ApplicationBase& app);
|
||||||
AppWindowingComponent(const AppWindowingComponent&) = delete;
|
AppWindowingComponent(const AppWindowingComponent&) = delete;
|
||||||
AppWindowingComponent(AppWindowingComponent&&) = delete;
|
AppWindowingComponent(AppWindowingComponent&&) = delete;
|
||||||
~AppWindowingComponent() = default;
|
~AppWindowingComponent() = default;
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,12 @@ namespace Nz
|
||||||
return *m_windows.emplace_back(std::make_unique<Window>(std::forward<Args>(args)...));
|
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()
|
inline void AppWindowingComponent::DisableQuitOnLastWindowClosed()
|
||||||
{
|
{
|
||||||
return EnableQuitOnLastWindowClosed(false);
|
return EnableQuitOnLastWindowClosed(false);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue