소스 검색

ADD: Show progress when open inner archive from archive

Alexander Koblov 3 년 전
부모
커밋
a0bd0ad760
1개의 변경된 파일2개의 추가작업 그리고 5개의 파일을 삭제
  1. 2 5
      src/filesources/uarchivefilesourceutil.pas

+ 2 - 5
src/filesources/uarchivefilesourceutil.pas

@@ -140,7 +140,7 @@ begin
 
       if Assigned(Operation) then
       begin
-        Operation.Execute;
+        OperationsManager.AddOperationModal(Operation);
 
         if Operation.Result = fsorFinished then
         begin
@@ -155,10 +155,7 @@ begin
 
     finally
       TempFS := nil;
-      if Assigned(Files) then
-        FreeAndNil(Files);
-      if Assigned(Operation) then
-        FreeAndNil(Operation);
+      FreeAndNil(Files);
     end;
   end;
 end;