Skip to content

Commit 9e7ac71

Browse files
Add (-SAC) to the form caption
Show the program mode in the main program caption.
1 parent 680a84e commit 9e7ac71

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

source/code/main.pas

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,7 @@ procedure TFormTrackerModify.FormCreate(Sender: TObject);
317317
procedure TFormTrackerModify.CheckBoxSkipAnnounceCheckChange(Sender: TObject);
318318
begin
319319
FTrackerList.SkipAnnounceCheck := CheckBoxSkipAnnounceCheck.Checked;
320+
ViewUpdateFormCaption;
320321
end;
321322

322323
procedure TFormTrackerModify.CheckBoxRemoveAllSourceTagChange(Sender: TObject);
@@ -1761,10 +1762,16 @@ procedure TFormTrackerModify.ViewUpdateFormCaption;
17611762
DecodeTime(FProcessTimeTotal, Hour, Minute, Second, MilliSecond);
17621763
ProcessTimeStr := IntToStr((Second * 1000) + MilliSecond) + ' mSec';
17631764
}
1764-
17651765
//Show user how many files are loaded
17661766
Caption := FORM_CAPTION + '( Torrent files: ' +
17671767
IntToStr(FTrackerList.TorrentFileNameList.Count) + ' )';
1768+
1769+
if CheckBoxSkipAnnounceCheck.Checked then
1770+
begin
1771+
Caption := Caption + '(-SAC)';
1772+
end;
1773+
1774+
17681775
// + ' (Process Time: ' + ProcessTimeStr + ' )'; //for debug purpose.
17691776
end;
17701777

0 commit comments

Comments
 (0)