mirror of
https://github.com/sheumann/NetDisk.git
synced 2024-11-23 22:37:02 +00:00
Work around some cases where parts of LE caret may flash out of sync.
This could happen after the caret was partially obscured by the alert window.
This commit is contained in:
parent
9fc13e108a
commit
f3519b3eef
7
cdev.c
7
cdev.c
@ -64,6 +64,13 @@ void DoMount(void)
|
|||||||
snprintf(numStr, sizeof(numStr), "%u", mountURLRec.result);
|
snprintf(numStr, sizeof(numStr), "%u", mountURLRec.result);
|
||||||
AlertWindow(awResource+awCString+awButtonLayout, (Pointer)subs,
|
AlertWindow(awResource+awCString+awButtonLayout, (Pointer)subs,
|
||||||
mountURLError);
|
mountURLError);
|
||||||
|
|
||||||
|
/* Work around issue where parts of LE caret may flash out of sync */
|
||||||
|
CtlRecHndl ctl = GetCtlHandleFromID(wPtr, urlLine);
|
||||||
|
LEDeactivate((LERecHndl) GetCtlTitle(ctl));
|
||||||
|
if (FindTargetCtl() == ctl) {
|
||||||
|
LEActivate((LERecHndl) GetCtlTitle(ctl));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user