refactor: rename tr_tracker_view.host to .host_and_port for clarity (#5508)

This commit is contained in:
Charles Kerr
2023-05-08 20:28:10 -05:00
committed by GitHub
parent ea500ecdcd
commit c61d8b7cf7
11 changed files with 23 additions and 22 deletions

View File

@@ -1964,7 +1964,8 @@ void buildTrackerSummary(
// hostname
gstr << text_dir_mark.at(static_cast<int>(direction));
gstr << (tracker.isBackup ? "<i>" : "<b>");
gstr << Glib::Markup::escape_text(!key.empty() ? fmt::format(FMT_STRING("{:s} - {:s}"), tracker.host, key) : tracker.host);
gstr << Glib::Markup::escape_text(
!key.empty() ? fmt::format(FMT_STRING("{:s} - {:s}"), tracker.host_and_port, key) : tracker.host_and_port);
gstr << (tracker.isBackup ? "</i>" : "</b>");
if (!tracker.isBackup)