зеркало из 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)
|
void HandleKeyDown(EventRecord* evt)
|
||||||
{
|
{
|
||||||
|
@ -118,7 +118,7 @@ void HandleKeyDown(EventRecord* evt)
|
||||||
{
|
{
|
||||||
case '\r':
|
case '\r':
|
||||||
case '\3':
|
case '\3':
|
||||||
if (gControls->nextB)
|
if (gControls->nextB && !sInstallStarted)
|
||||||
{
|
{
|
||||||
HiliteControl(gControls->nextB, 1);
|
HiliteControl(gControls->nextB, 1);
|
||||||
Delay(8, &finalTicks);
|
Delay(8, &finalTicks);
|
||||||
|
@ -160,7 +160,8 @@ void HandleKeyDown(EventRecord* evt)
|
||||||
return;
|
return;
|
||||||
case kTerminalID:
|
case kTerminalID:
|
||||||
if (!sInstallStarted)
|
if (!sInstallStarted)
|
||||||
{
|
{
|
||||||
|
DisableNavButtons();
|
||||||
ClearSiteSelector();
|
ClearSiteSelector();
|
||||||
SpawnSDThread(Install, &tid);
|
SpawnSDThread(Install, &tid);
|
||||||
sInstallStarted = true;
|
sInstallStarted = true;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче