зеркало из https://github.com/mozilla/pjs.git
Prevent multiple redundant downloads when default (return) key is hit more than once.
This commit is contained in:
Родитель
d02f2a8dee
Коммит
2cf7132270
|
@ -101,7 +101,7 @@ void HandleMouseDown(EventRecord* evt)
|
|||
}
|
||||
}
|
||||
|
||||
static sInstallStarted = false;
|
||||
static Boolean sInstallStarted = false;
|
||||
|
||||
void HandleKeyDown(EventRecord* evt)
|
||||
{
|
||||
|
@ -118,7 +118,7 @@ void HandleKeyDown(EventRecord* evt)
|
|||
{
|
||||
case '\r':
|
||||
case '\3':
|
||||
if (gControls->nextB)
|
||||
if (gControls->nextB && !sInstallStarted)
|
||||
{
|
||||
HiliteControl(gControls->nextB, 1);
|
||||
Delay(8, &finalTicks);
|
||||
|
@ -160,7 +160,8 @@ void HandleKeyDown(EventRecord* evt)
|
|||
return;
|
||||
case kTerminalID:
|
||||
if (!sInstallStarted)
|
||||
{
|
||||
{
|
||||
DisableNavButtons();
|
||||
ClearSiteSelector();
|
||||
SpawnSDThread(Install, &tid);
|
||||
sInstallStarted = true;
|
||||
|
|
Загрузка…
Ссылка в новой задаче