mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Small fixes
This commit is contained in:
parent
7b2d2c1cb0
commit
e51156f4e3
2 changed files with 9 additions and 3 deletions
|
|
@ -56,7 +56,7 @@ function ShowExtractDlg(ActiveFrame:TFrameFilePanel; var fl : TFileList; sDestP
|
|||
|
||||
implementation
|
||||
uses
|
||||
uTypes, uDCUtils;
|
||||
uTypes, uGlobs, uDCUtils;
|
||||
|
||||
var
|
||||
CurrentVFS : TVFS;
|
||||
|
|
@ -73,10 +73,13 @@ begin
|
|||
|
||||
if ActiveFrame.pnlFile.PanelMode = pmArchive then
|
||||
cbInSeparateFolder.Visible := False;
|
||||
|
||||
cbFileMask.Items.Assign(glsMaskHistory);
|
||||
|
||||
Result:= (ShowModal = mrOK);
|
||||
if Result then
|
||||
begin
|
||||
if glsMaskHistory.IndexOf(cbFileMask.Text) < 0 then
|
||||
glsMaskHistory.Add(cbFileMask.Text);
|
||||
sDestPath := IncludeTrailingPathDelimiter(edtExtractTo.Text) + cbFileMask.Text;
|
||||
ExtractFileList := TFileList.Create;
|
||||
ExtractFileList.CurrentDirectory := PathDelim;
|
||||
|
|
|
|||
|
|
@ -78,6 +78,7 @@ uses
|
|||
function ShowPackInfoDlg(WCXModule: TWCXModule; HeaderData: THeaderData): Boolean;
|
||||
var
|
||||
dtDateTime: TDateTime;
|
||||
sArcType: String;
|
||||
begin
|
||||
with TfrmPackInfoDlg.Create(Application) do
|
||||
begin
|
||||
|
|
@ -85,7 +86,9 @@ begin
|
|||
fWCXModule:= WCXModule;
|
||||
|
||||
edtPackedFile.Text:= HeaderData.FileName;
|
||||
lblPackedPacker.Caption:= ExtractFileExt(HeaderData.ArcName);
|
||||
sArcType:= ExtractFileExt(HeaderData.ArcName);
|
||||
Delete(sArcType, 1, 1);
|
||||
lblPackedPacker.Caption:= sArcType;
|
||||
lblPackedOrgSize.Caption:= IntToStr(HeaderData.UnpSize);
|
||||
lblPackedPackedSize.Caption:= IntToStr(HeaderData.PackSize);
|
||||
lblPackedCompression.Caption:= IntToStr(100 - (HeaderData.PackSize*100 div HeaderData.UnpSize))+'%';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue