mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
TabContainer no longer crashes on controls without name.
This commit is contained in:
@@ -3,6 +3,7 @@ using System.Collections.Generic;
|
||||
using JetBrains.Annotations;
|
||||
using Robust.Client.Graphics;
|
||||
using Robust.Client.Graphics.Drawing;
|
||||
using Robust.Shared.Localization;
|
||||
using Robust.Shared.Maths;
|
||||
using Robust.Shared.Utility;
|
||||
|
||||
@@ -67,7 +68,7 @@ namespace Robust.Client.UserInterface.Controls
|
||||
|
||||
public string GetTabTitle(int tab)
|
||||
{
|
||||
return _tabData[tab].Name ?? GetChild(tab).Name;
|
||||
return _tabData[tab].Name ?? GetChild(tab).Name ?? Loc.GetString("No title");
|
||||
}
|
||||
|
||||
public void SetTabTitle(int tab, string title)
|
||||
|
||||
Reference in New Issue
Block a user