Skip to content

Commit 141cf72

Browse files
fix: Show only validated torrent file
If unable to decode a torrent file then there is no need to show it. There is already a popup that this torrent can not be decoded.
1 parent e5e2e2d commit 141cf72

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

source/code/main.pas

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,10 @@ function TFormTrackerModify.DecodeTorrentFile(const FileName: UTF8String): boole
10001000
//Called when user add torrent files
10011001
//False if something is wrong with decoding torrent.
10021002
Result := FDecodePresentTorrent.DecodeTorrent(FileName);
1003-
ViewUpdateOneTorrentFileDecoded;
1003+
if Result then
1004+
begin
1005+
ViewUpdateOneTorrentFileDecoded;
1006+
end;
10041007
end;
10051008

10061009
procedure TFormTrackerModify.UpdateTorrentTrackerList;

0 commit comments

Comments
 (0)