From: jmcb Date: Mon, 1 Jul 2024 16:27:49 +0000 (+0100) Subject: Fix showing tips on the login screen from the localized tip dataset (#29640) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=ca87fb8bc5954a4604ce84d1413a88f22a6fc5f9;p=space-station-14.git Fix showing tips on the login screen from the localized tip dataset (#29640) Regression introduced in #28285 --- 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)); }