Skip to content

Commit 356b69f

Browse files
committed
Fix Checkpoint Manager button not updating the menu in the pause menu
Signed-off-by: Kevadroz <[email protected]>
1 parent 4201560 commit 356b69f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
- Added a setting for decimal precision for percentages
33
- Added an option to disable auto checkpoints when a persistent checkpoint is active (enabled by default)
44
- Fixed crash on playing an editor level on some setups \[[Issue #8](https://github.com/Kevadroz/PracticeCheckpointPermanence/issues/8)\]
5+
- Fix Checkpoint Manager button not updating the menu in the pause menu
56

67
# 1.2.3
78
- Added support for Mod Previews

src/Hooks/PauseLayer.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,7 @@ void ModPauseLayer::customSetup() {
6161
}
6262
);
6363

64-
getChildByID("right-button-menu")->addChild(button);
64+
CCMenu* menu = static_cast<CCMenu*>(getChildByID("right-button-menu"));
65+
menu->addChild(button);
66+
menu->updateLayout();
6567
}

0 commit comments

Comments
 (0)