Skip to content

Commit 7542bc7

Browse files
committed
fix FPS panel visibility
1 parent 4a2b388 commit 7542bc7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Intersect.Client.Core/Interface/Shared/FPSPanel.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@ public FPSPanel(Base parent, string name = nameof(FPSPanel)) : base(parent: pare
2121
{
2222
Alignment = [Alignments.Top, Alignments.Right];
2323
BackgroundColor = new Color(0x7f, 0, 0, 0);
24+
IsVisibleInParent = Globals.Database?.ShowFPSCounter ?? false;
2425
RestrictToParent = true;
25-
// TODO: Remove this when showing a game version is added
26-
IsVisibleInTree = ApplicationContext.CurrentContext.IsDeveloper;
2726

2827
var font = GameContentManager.Current.GetFont("sourcesansproblack");
2928

@@ -36,7 +35,6 @@ public FPSPanel(Base parent, string name = nameof(FPSPanel)) : base(parent: pare
3635
Padding = new Padding(8, 4),
3736
Text = ApplicationContext.CurrentContext.VersionName,
3837
TextAlign = Pos.Center,
39-
IsVisibleInParent = Globals.Database?.ShowFPSCounter ?? false,
4038
};
4139

4240
MinimumSize = Graphics.Renderer.MeasureText(

0 commit comments

Comments
 (0)