Sdk/Application: Add MakeExitOnLastWindowClosed
At least it's explicit Former-commit-id: 1db6523fe5ad0085056b1192cbf8ff8b714dd795 [formerly 1e02bb893158e39d69201c6044501149722bc308] Former-commit-id: eee14cb25425b7a368d084fcb552996784e4a70e
This commit is contained in:
parent
0e01bdaa3e
commit
a2b4146645
|
|
@ -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