File tree Expand file tree Collapse file tree 4 files changed +12
-4
lines changed Expand file tree Collapse file tree 4 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -1528,6 +1528,7 @@ procedure TFormTrackerModify.FormDropFiles(Sender: TObject;
1528
1528
MemoNewTrackers.Append(UTF8Trim(TrackerFileNameStringList.Text));
1529
1529
except
1530
1530
// supress any error in loading the file
1531
+ FileNameOrDirStr := FileNameOrDirStr;
1531
1532
end ;
1532
1533
end ;
1533
1534
Original file line number Diff line number Diff line change @@ -95,6 +95,7 @@ function TngosangTrackerList.DownloadTracker(ngosang_List: Tngosang_List): TStri
95
95
96
96
except
97
97
// No OpenSSL or web server is down
98
+ FTRackerList[ngosang_List].Clear;
98
99
end ;
99
100
100
101
Result := FTrackerList[ngosang_List];
Original file line number Diff line number Diff line change @@ -246,8 +246,11 @@ function ByteSizeToBiggerSizeFormatStr(ByteSize: int64): string;
246
246
Result := Format(' %0.2f MiB' , [ByteSize / (1024 * 1024 )])
247
247
else
248
248
if ByteSize >= (1024 ) then
249
- Result := Format(' %0.2f KiB' , [ByteSize / 1024 ]);
250
- Result := Result + Format(' (%d Bytes)' , [ByteSize]);
249
+ Result := Format(' %0.2f KiB' , [ByteSize / 1024 ])
250
+ else
251
+ Result := ' ' ;
252
+
253
+ Result := Result + Format(' (%d Bytes)' , [ByteSize]);
251
254
end ;
252
255
253
256
@@ -629,11 +632,11 @@ function ConsoleModeDecodeParameter(out FileNameOrDirStr: UTF8String;
629
632
-U3 "path_to_folder" -SAC -SOURCE "ABC"
630
633
}
631
634
635
+ Result := False;
632
636
case Paramcount of
633
637
0 :
634
638
begin
635
639
TrackerList.LogStringList.Add(' ERROR: There are no parameter detected.' );
636
- Result := False;
637
640
exit;
638
641
end ;
639
642
1 :
Original file line number Diff line number Diff line change @@ -90,7 +90,10 @@ function TTrackerListOnline.TrackerListOnlineStatusToString(
90
90
tos_dead: Result := ' Dead' ;
91
91
tos_unknown: Result := ' Unknown' ;
92
92
else
93
- assert(True, ' Unknown TTrackerListOnlineStatus' )
93
+ begin
94
+ Result := ' ' ;
95
+ assert(True, ' Unknown TTrackerListOnlineStatus' )
96
+ end ;
94
97
end ;
95
98
end ;
96
99
You can’t perform that action at this time.
0 commit comments