This commit is contained in:
dborth 2009-07-27 03:50:37 +00:00
parent cfa121ef9e
commit 3e79990a07

View File

@ -191,8 +191,11 @@ WindowPrompt(const char *title, const char *msg, const char *btn1Label, const ch
mainWindow->SetState(STATE_DISABLED); mainWindow->SetState(STATE_DISABLED);
mainWindow->Append(&promptWindow); mainWindow->Append(&promptWindow);
mainWindow->ChangeFocus(&promptWindow); mainWindow->ChangeFocus(&promptWindow);
btn1.ResetState(); if(btn2Label)
btn2.SetState(STATE_SELECTED); {
btn1.ResetState();
btn2.SetState(STATE_SELECTED);
}
ResumeGui(); ResumeGui();
while(choice == -1) while(choice == -1)