Sdk/Application: Add MakeExitOnLastWindowClosed
At least it's explicit Former-commit-id: e5bf5064222934b4f9dade56aab74b8f29367ed8 [formerly 5d7aa20615adf39407b95096a2da8c4888111fef] Former-commit-id: b404314721413e7d9b6d0307f7316f22ac5f81fb
This commit is contained in:
parent
26475973e2
commit
2007edd398
|
|
@ -33,6 +33,10 @@ namespace Ndk
|
|||
|
||||
bool Run();
|
||||
|
||||
#ifndef NDK_SERVER
|
||||
inline void MakeExitOnLastWindowClosed(bool exitOnClosedWindows);
|
||||
#endif
|
||||
|
||||
inline void Quit();
|
||||
|
||||
Application& operator=(const Application&) = delete;
|
||||
|
|
|
|||
|
|
@ -61,6 +61,13 @@ namespace Ndk
|
|||
return m_updateTime;
|
||||
}
|
||||
|
||||
#ifndef NDK_SERVER
|
||||
inline void Application::MakeExitOnLastWindowClosed(bool exitOnClosedWindows)
|
||||
{
|
||||
m_exitOnClosedWindows = exitOnClosedWindows;
|
||||
}
|
||||
#endif
|
||||
|
||||
inline void Application::Quit()
|
||||
{
|
||||
m_shouldQuit = true;
|
||||
|
|
|
|||
Loading…
Reference in New Issue