mirror of
https://github.com/sheumann/NetDisk.git
synced 2026-04-19 03:17:28 +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:
@@ -64,6 +64,13 @@ void DoMount(void)
|
||||
snprintf(numStr, sizeof(numStr), "%u", mountURLRec.result);
|
||||
AlertWindow(awResource+awCString+awButtonLayout, (Pointer)subs,
|
||||
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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user