Skip to content

Commit c6705a1

Browse files
committed
update 123
1 parent d41a3ba commit c6705a1

3 files changed

Lines changed: 7 additions & 8 deletions

File tree

changelog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
- This should reduce crash issues with *Flicks* option
44
- Fix jump boost not working for *Ending Gamble*, *Charged Leap*, and *Super Jump* options while the player's gravity is upside-down
55
- Lowered cooldown range for *Blinking Icon* option
6-
- Several other fixes
6+
- Several tweaks
77

88
# v1.2.2
99
- Tweaked charge-up flow for *Charged Leap* option

mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"id": "cubicstudios.horriblemenu",
1010
"name": "Horrible Menu",
11-
"version": "1.2.2",
11+
"version": "1.2.3",
1212
"developers": [
1313
"Team Breakeode",
1414
"Cheeseworks",

src/ui/src/Menu.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,12 @@ struct Menu::Impl final {
7979
return false;
8080
});
8181

82-
if (list.empty()) {
83-
nothingLabel->setVisible(true);
84-
optionList->setVisible(false);
85-
} else {
86-
nothingLabel->setVisible(false);
87-
optionList->setVisible(true);
82+
auto empty = list.empty();
83+
84+
nothingLabel->setVisible(empty);
85+
optionList->setVisible(!empty);
8886

87+
if (!empty) {
8988
for (auto& oRef : list) {
9089
if (auto o = oRef.lock()) {
9190
if (auto modOption = MenuOptionCell::create(

0 commit comments

Comments
 (0)