Skip to content

Commit

Permalink
Revert "Fix #592 (MOD OPTIONS closes when clicked on)"
Browse files Browse the repository at this point in the history
This reverts commit 0a4e76b.
  • Loading branch information
misternebula committed Oct 10, 2024
1 parent 0a4e76b commit a5d1301
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/OWML.ModHelper.Menus/NewMenuSystem/MenuManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -210,15 +210,7 @@ void SaveConfig()

newModTab.OnDeactivateMenu += () =>
{
// 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);
}
});
OptionsMenuManager.RemoveTab(newModTab);
};

foreach (var (name, setting) in mod.ModHelper.Config.Settings)
Expand Down

0 comments on commit a5d1301

Please sign in to comment.