Skip to content

Commit

Permalink
Ensure reload GlobalSettings when going to main menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Dastan21 committed Jan 18, 2023
1 parent 7d209dd commit da10ee9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions PantheonsHitCounter/ModMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,7 @@ private static void Reset()
public static MenuScreen GetMenu(MenuScreen lastMenu, ModToggleDelegates? toggle)
{
if (toggle == null) return null;
if (_menuRef == null)
_menuRef = PrepareMenu((ModToggleDelegates) toggle);
_menuRef = PrepareMenu((ModToggleDelegates) toggle);

return _menuRef.GetMenuScreen(lastMenu);
}
Expand Down
2 changes: 1 addition & 1 deletion PantheonsHitCounter/PantheonsHitCounter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class PantheonsHitCounter : Mod, IGlobalSettings<GlobalData>, ILocalSetti
public const int CompactSplitsCountMax = 22;

public PantheonsHitCounter() : base("Pantheons Hit Counter") {}
public override string GetVersion() => "1.3.5";
public override string GetVersion() => "1.3.6";
public MenuScreen GetMenuScreen(MenuScreen modListMenu, ModToggleDelegates? toggle) => ModMenu.GetMenu(modListMenu, toggle);
public void OnLoadGlobal(GlobalData data) => globalData = data;
public GlobalData OnSaveGlobal() => globalData;
Expand Down

0 comments on commit da10ee9

Please sign in to comment.