mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
GUI_APP_MAIN now calls Ctrl::ShutdownThreads at the end
This commit is contained in:
parent
8c8c50af2c
commit
a4ff4453fd
4 changed files with 6 additions and 0 deletions
|
|
@ -21,6 +21,8 @@ int main(int argc, const char **argv, const char **envptr) { \
|
|||
GuiMainFn_(); \
|
||||
UPP::Ctrl::CloseTopCtrls(); \
|
||||
UPP::CocoExit(); \
|
||||
UPP::Ctrl::ShutdownThreads(); \
|
||||
UPP::AppExit__(); \
|
||||
return UPP::GetExitCode(); \
|
||||
} \
|
||||
\
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ int main(int argc, char **argv, const char **envptr) { \
|
|||
UPP::AppExecute__(GuiMainFn_); \
|
||||
UPP::Ctrl::CloseTopCtrls(); \
|
||||
UPP::ExitGtkApp(); \
|
||||
UPP::Ctrl::ShutdownThreads(); \
|
||||
UPP::AppExit__(); \
|
||||
return UPP::GetExitCode(); \
|
||||
} \
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE, LPTSTR lpCmdLine, int nCmdS
|
|||
GuiMainFn_(); \
|
||||
} \
|
||||
UPP::Ctrl::ExitWin32(); \
|
||||
UPP::Ctrl::ShutdownThreads(); \
|
||||
UPP::AppExit__(); \
|
||||
return UPP::GetExitCode(); \
|
||||
} \
|
||||
|
|
@ -44,6 +45,7 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE, LPSTR lpCmdLine, int nCmdSh
|
|||
UPP::AppExecute__(GuiMainFn_); \
|
||||
UPP::Ctrl::CloseTopCtrls(); \
|
||||
UPP::Ctrl::ExitWin32(); \
|
||||
UPP::Ctrl::ShutdownThreads(); \
|
||||
UPP::AppExit__(); \
|
||||
return UPP::GetExitCode(); \
|
||||
} \
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ int main(int argc, const char **argv, const char **envptr) { \
|
|||
UPP::Ctrl::InitX11(NULL); \
|
||||
UPP::AppExecute__(GuiMainFn_); \
|
||||
UPP::Ctrl::ExitX11(); \
|
||||
UPP::Ctrl::ShutdownThreads(); \
|
||||
UPP::AppExit__(); \
|
||||
return UPP::GetExitCode(); \
|
||||
} \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue