Skip to content

Commit c776943

Browse files
committed
Empty tab header fixed
1 parent 2779dc4 commit c776943

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Source/NETworkManager/ViewModels/PortScannerHostViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ public void AddTab(string host = null, string ports = null)
432432
{
433433
_tabId++;
434434

435-
TabItems.Add(new DragablzTabItem(host ?? LocalizationManager.GetStringByKey("String_Header_NewTab"), new PortScannerView(_tabId, host, ports), _tabId));
435+
TabItems.Add(new DragablzTabItem(string.IsNullOrEmpty(host) ? LocalizationManager.GetStringByKey("String_Header_NewTab") : host, new PortScannerView(_tabId, host, ports), _tabId));
436436

437437
SelectedTabIndex = TabItems.Count - 1;
438438
}

0 commit comments

Comments
 (0)