Skip to content

Commit

Permalink
Moar changes
Browse files Browse the repository at this point in the history
  • Loading branch information
c4llv07e committed Dec 18, 2024
1 parent c9c6055 commit 7d2a6a3
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Content.Client/Options/UI/Tabs/AudioTab.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,24 @@ public AudioTab()
Control.AddOptionCheckBox(CCVars.AdminSoundsEnabled, AdminSoundsCheckBox);
Control.AddOptionCheckBox(CCVars.BwoinkSoundEnabled, BwoinkSoundCheckBox);

_admin.AdminStatusUpdated += UpdateAdminButtonsVisibility;
UpdateAdminButtonsVisibility();

Control.Initialize();
}

protected override void EnteredTree()
{
base.EnteredTree();
_admin.AdminStatusUpdated += UpdateAdminButtonsVisibility;
}

protected override void ExitedTree()
{
base.ExitedTree();
_admin.AdminStatusUpdated -= UpdateAdminButtonsVisibility;
}


private void UpdateAdminButtonsVisibility()
{
BwoinkSoundCheckBox.Visible = _admin.IsActive();
Expand Down

0 comments on commit 7d2a6a3

Please sign in to comment.