Skip to content

Commit

Permalink
Fix #585
Browse files Browse the repository at this point in the history
  • Loading branch information
misternebula committed Oct 10, 2024
1 parent a5d1301 commit 6392f7d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/OWML.ModHelper.Menus/NewMenuSystem/MenuManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,15 @@ void SaveConfig()
newModTab.OnDeactivateMenu += () =>
{
OptionsMenuManager.RemoveTab(newModTab);
// Fixes tab dissapearing when you click on it again
// Clicking on a tab closes and opens it again
_unityEvents.FireOnNextUpdate(() =>
{
if (!newModTab._isActivated)
{
OptionsMenuManager.RemoveTab(newModTab);
}
});
};
foreach (var (name, setting) in mod.ModHelper.Config.Settings)
Expand Down

0 comments on commit 6392f7d

Please sign in to comment.