Guard skill header when size is unset
This commit is contained in:
parent
81d4106af2
commit
faa0f8f1d8
3 changed files with 1 additions and 1 deletions
|
|
@ -881,7 +881,7 @@ namespace src.utils
|
||||||
var your_skill = player.GetTranslationWithoutIlliterate("your_skill");
|
var your_skill = player.GetTranslationWithoutIlliterate("your_skill");
|
||||||
var emptySymbol = $"<font class='fontSize-{(string.IsNullOrEmpty(your_skill) ? "l" : "ml")}'> </font>";
|
var emptySymbol = $"<font class='fontSize-{(string.IsNullOrEmpty(your_skill) ? "l" : "ml")}'> </font>";
|
||||||
|
|
||||||
string infoLine = string.IsNullOrEmpty(your_skill)
|
string infoLine = string.IsNullOrEmpty(your_skill) || string.IsNullOrEmpty(config.HeaderLineSize)
|
||||||
? ""
|
? ""
|
||||||
: $"<font class='fontWeight-Bold fontSize-{config.HeaderLineSize}' color='{config.HeaderLineColor}'>\u202A{your_skill}:\u202C</font><br>";
|
: $"<font class='fontWeight-Bold fontSize-{config.HeaderLineSize}' color='{config.HeaderLineColor}'>\u202A{your_skill}:\u202C</font><br>";
|
||||||
|
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue