Skip to content

Commit 895d990

Browse files
committed
leave me alone
1 parent f600ee9 commit 895d990

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/changeDesign.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ void DeltaruneAlertLayer::changeSingleButton(CCMenuItemSpriteExtra* btn, ButtonS
9090
}
9191
}
9292

93+
// fix handleTouchPrio breaking the buttons
9394
void DeltaruneAlertLayer::fixTouchPrio() {
9495
auto& buttonMenu = this->m_buttonMenu;
9596

@@ -125,10 +126,9 @@ void DeltaruneAlertLayer::changeButtons() {
125126
changeSingleButton(m_fields->btn1, m_button1);
126127
changeSingleButton(m_fields->btn2, m_button2);
127128

128-
// fix handleTouchPrio breaking the buttons
129-
Loader::get()->queueInMainThread([popup = Ref(this)] {
130-
Loader::get()->queueInMainThread([popup] {
131-
popup->fixTouchPrio();
129+
Loader::get()->queueInMainThread([this] {
130+
Loader::get()->queueInMainThread([this] {
131+
this->fixTouchPrio();
132132
});
133133
});
134134
}

0 commit comments

Comments
 (0)