mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
.upptst
git-svn-id: svn://ultimatepp.org/upp/trunk@13889 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
3d1bada879
commit
fc50cd7a15
2 changed files with 13 additions and 12 deletions
|
|
@ -5,5 +5,6 @@ file
|
|||
main.cpp;
|
||||
|
||||
mainconfig
|
||||
"" = "GUI MT";
|
||||
"" = "GUI",
|
||||
"" = "GUI X11";
|
||||
|
||||
|
|
|
|||
|
|
@ -22,20 +22,19 @@ void Ask(bool *result)
|
|||
|
||||
void App::Work()
|
||||
{
|
||||
int q = 0;
|
||||
int i = 0;
|
||||
while(!Thread::IsShutdownThreads()) {
|
||||
if(++q > 200) {
|
||||
if(PromptYesNo("Do you want to quit?")) {
|
||||
GuiLock __;
|
||||
Break();
|
||||
}
|
||||
q = 0;
|
||||
}
|
||||
for(int i = 0; i < 101; i++) {
|
||||
Sleep(50);
|
||||
if(list.GetCount() > 100) {
|
||||
GuiLock __;
|
||||
list.Set(i, 0, (int)Random());
|
||||
if(PromptYesNo("Do you want to quit?")) {
|
||||
Break();
|
||||
break;
|
||||
}
|
||||
list.Clear();
|
||||
}
|
||||
Sleep(10);
|
||||
GuiLock __;
|
||||
list.Add(i++);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -54,6 +53,7 @@ App::~App()
|
|||
|
||||
GUI_APP_MAIN
|
||||
{
|
||||
StdLogSetup(LOG_FILE|LOG_ELAPSED);
|
||||
App app;
|
||||
app.Run();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue