瀏覽代碼

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;