mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-17 19:40:39 +02:00
Converter: Thread feature cleanup.
git-svn-id: trunk@28247 -
This commit is contained in:
parent
11ed939856
commit
972428939b
@ -970,20 +970,15 @@ function TConvertDelphiPBase.Convert: TModalResult;
|
||||
var
|
||||
// The initial unit name cache is done in a thread so that GUI shows at once.
|
||||
CacheUnitsThread: TCacheUnitsThread;
|
||||
b: Boolean;
|
||||
begin
|
||||
{$IFDEF UseCThreads}
|
||||
ShowMessage('here we are!');
|
||||
{$ENDIF}
|
||||
IDEMessagesWindow.Clear;
|
||||
// Start scanning unit files one level above project path. The GUI will appear
|
||||
// without delay but then we must wait for the thread before continuing.
|
||||
CacheUnitsThread:=TCacheUnitsThread.Create(Self, fSettings.MainPath);
|
||||
try
|
||||
b := CacheUnitsThread.FreeOnTerminate;
|
||||
CacheUnitsThread.Resume;
|
||||
Result:=fSettings.RunForm; // Get settings from user.
|
||||
CacheUnitsThread.WaitFor; // Make sure the thread has finished.
|
||||
CacheUnitsThread.WaitFor; // Make sure the thread has finished.
|
||||
if Result=mrOK then begin
|
||||
// create/open lazarus project or package file
|
||||
fLazPFilename:=fSettings.DelphiToLazFilename(fOrigPFilename, fLazPSuffix, false);
|
||||
|
Loading…
Reference in New Issue
Block a user