From ca87fb8bc5954a4604ce84d1413a88f22a6fc5f9 Mon Sep 17 00:00:00 2001 From: jmcb Date: Mon, 1 Jul 2024 17:27:49 +0100 Subject: [PATCH] Fix showing tips on the login screen from the localized tip dataset (#29640) Regression introduced in #28285 --- Content.Client/Launcher/LauncherConnectingGui.xaml.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Content.Client/Launcher/LauncherConnectingGui.xaml.cs b/Content.Client/Launcher/LauncherConnectingGui.xaml.cs index ac74ad7b60..5015b710eb 100644 --- a/Content.Client/Launcher/LauncherConnectingGui.xaml.cs +++ b/Content.Client/Launcher/LauncherConnectingGui.xaml.cs @@ -116,7 +116,7 @@ namespace Content.Client.Launcher private void ChangeLoginTip() { var tipsDataset = _cfg.GetCVar(CCVars.LoginTipsDataset); - var loginTipsEnabled = _prototype.TryIndex(tipsDataset, out var tips); + var loginTipsEnabled = _prototype.TryIndex(tipsDataset, out var tips); LoginTips.Visible = loginTipsEnabled; if (!loginTipsEnabled) @@ -131,7 +131,7 @@ namespace Content.Client.Launcher var randomIndex = _random.Next(tipList.Count); var tip = tipList[randomIndex]; - LoginTip.SetMessage(tip); + LoginTip.SetMessage(Loc.GetString(tip)); LoginTipTitle.Text = Loc.GetString("connecting-window-tip", ("numberTip", randomIndex)); } -- 2.51.2