Skip to content

Commit addf85b

Browse files
Update some text caption.
name explicit 'new' trackers. create constant GROUPBOX_PRESENT_TRACKERS_CAPTION
1 parent 3cba736 commit addf85b

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

source/code/main.lfm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ object FormTrackerModify: TFormTrackerModify
88
ClientHeight = 587
99
ClientWidth = 1179
1010
Constraints.MinHeight = 500
11-
Constraints.MinWidth = 640
11+
Constraints.MinWidth = 700
1212
Font.Height = -11
1313
Menu = MainMenu
1414
OnCreate = FormCreate
@@ -45,7 +45,7 @@ object FormTrackerModify: TFormTrackerModify
4545
Top = 1
4646
Width = 1169
4747
Align = alTop
48-
Caption = 'Add trackers to torrent file(s).'
48+
Caption = 'Add new trackers to torrent file(s).'
4949
ClientHeight = 183
5050
ClientWidth = 1165
5151
Constraints.MinHeight = 100

source/code/main.pas

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,10 @@ implementation
244244
TORRENT_FILES_CONTENTS_FORM_CAPTION =
245245
'Show all the files inside the torrents. (Use right mouse for popup menu.)';
246246

247+
GROUPBOX_PRESENT_TRACKERS_CAPTION =
248+
'Present trackers in all torrent files. Select the one that you want to keep. And added to all torrent files.';
249+
250+
247251
//'add trackers' text file must be place in the same directory as the program.
248252
ADD_TRACKERS_FILE_NAME = 'add_trackers.txt';
249253

@@ -263,7 +267,6 @@ implementation
263267

264268
procedure TFormTrackerModify.FormCreate(Sender: TObject);
265269
begin
266-
Caption := FORM_CAPTION;
267270

268271
//Create controler for StringGridTorrentData
269272
FControlerGridTorrentData := TControlerGridTorrentData.Create(StringGridTorrentData);
@@ -324,7 +327,11 @@ procedure TFormTrackerModify.FormCreate(Sender: TObject);
324327
//Check is program is started as console
325328
ConsoleMode;
326329

330+
//Update some captions
331+
Caption := FORM_CAPTION;
327332
GroupBoxTorrentContents.Caption := TORRENT_FILES_CONTENTS_FORM_CAPTION;
333+
GroupBoxPresentTracker.Caption := GROUPBOX_PRESENT_TRACKERS_CAPTION
334+
328335
end;
329336

330337
procedure TFormTrackerModify.FormDestroy(Sender: TObject);
@@ -1815,9 +1822,8 @@ procedure TFormTrackerModify.ViewUpdateEnd;
18151822
ByteSizeToBiggerSizeFormatStr(FTotalFileSizeInsideTorrent) + '';
18161823

18171824

1818-
GroupBoxPresentTracker.Caption :=
1819-
'Present trackers in all torrent files.' +
1820-
' Select the one that you want to keep. (List count: ' +
1825+
GroupBoxPresentTracker.Caption := GROUPBOX_PRESENT_TRACKERS_CAPTION +
1826+
' (List count: ' +
18211827
IntToStr(FTrackerFromInsideTorrentFilesList.Count) + ' )';
18221828

18231829

0 commit comments

Comments
 (0)