summaryrefslogtreecommitdiff
path: root/UChecksum.pas
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2008-11-14 21:07:33 +0100
committerTomas Bzatek <tbzatek@users.sourceforge.net>2008-11-14 21:07:33 +0100
commit672d925f873c636562f80c6a46e1086e3fe6549a (patch)
tree295d405c8827391878f0eefcea99cedd5d5713f6 /UChecksum.pas
parent75fe735e013a99e1d2a584eaeb0fa0a2ca5c1de7 (diff)
downloadtuxcmd-0.6.58.tar.xz
Checksum dialogs little UI fixesv0.6.58
Diffstat (limited to 'UChecksum.pas')
-rw-r--r--UChecksum.pas9
1 files changed, 6 insertions, 3 deletions
diff --git a/UChecksum.pas b/UChecksum.pas
index 9bd2aaf..c89ae43 100644
--- a/UChecksum.pas
+++ b/UChecksum.pas
@@ -173,7 +173,7 @@ end;
procedure TFChecksum.FormShow(Sender: TObject);
begin
CheckButton.Enabled := FileList.Items.Count > 0;
- if MD5Present and (not SFVPresent) and (CommentTextView.TextBuffer.LineCount = 1)
+ if MD5Present or {(not SFVPresent) and} (CommentTextView.TextBuffer.CharCount < 1)
then HPaned.Position := Width - 90;
end;
@@ -448,17 +448,20 @@ begin
libc_free(Buffer);
ProgressBar.Fraction := 1;
CheckButton.Caption := LANGCheckButtonCaptionCheck;
- if Stop then StatLabel.Caption := LANGChecksumInterrupted else begin
+ if Stop then begin
+ StatLabel.Caption := LANGChecksumInterrupted;
+ CheckButton.SetFocus;
+ end else begin
Error := 0;
if List.Count > 0 then
for i := 0 to List.Count - 1 do
if TFileListItem(List[i]).Status <> 1 then Inc(Error);
StatLabel.Caption := Format(LANGChecksumDOK, [Round(100 * (List.Count - Error) / List.Count)]);
+ ActionArea.SetFocus;
end;
StatLabel.UseMarkup := True;
Stop := False;
Processing := False;
- ActionArea.SetFocus;
end;
procedure TFChecksum.MarkAsBad(const FileName: string);