Skip to content

Commit

Permalink
Fix showing tips on the login screen from the localized tip dataset (#…
Browse files Browse the repository at this point in the history
…29640)

Regression introduced in #28285
  • Loading branch information
irismessage authored Jul 1, 2024
1 parent e069776 commit ca87fb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Content.Client/Launcher/LauncherConnectingGui.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ private void HandleDisconnectReason(INetStructuredReason? reason)
private void ChangeLoginTip()
{
var tipsDataset = _cfg.GetCVar(CCVars.LoginTipsDataset);
var loginTipsEnabled = _prototype.TryIndex<DatasetPrototype>(tipsDataset, out var tips);
var loginTipsEnabled = _prototype.TryIndex<LocalizedDatasetPrototype>(tipsDataset, out var tips);

LoginTips.Visible = loginTipsEnabled;
if (!loginTipsEnabled)
Expand All @@ -131,7 +131,7 @@ private void ChangeLoginTip()

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));
}
Expand Down

0 comments on commit ca87fb8

Please sign in to comment.