Skip to content

Commit

Permalink
Fixed notification clicking crashing
Browse files Browse the repository at this point in the history
  • Loading branch information
Jouca committed Jul 28, 2024
1 parent 609751c commit ae3069c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions src/Notifications/EventsPush.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -309,13 +309,11 @@ void EventsPush::onClickBtn(CCObject* ret) {
#endif
std::string const& fields = "secret=Wmfd2893gb7&type=0&str=" + std::to_string(level_id);

const std::lock_guard<std::mutex> lock(lock_var);
geode::utils::web::WebRequest request = web::WebRequest();
RUNNING_REQUESTS.emplace(
"@loaderEventRateNotification",
request.bodyString(fields).post(url).map(
[](web::WebResponse* response) {
const std::lock_guard<std::mutex> lock(lock_var);
if (response->ok()) {
if (response->data().empty()) {
FLAlertLayer::create(nullptr,
Expand Down
2 changes: 1 addition & 1 deletion src/Styles/GauntletStyle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ class $modify(CustomGauntletSelectLayer, GauntletSelectLayer) {
} else if (gauntletName == "Time") {
CCSprite* sprite = CCSprite::createWithSpriteFrameName("time_gauntlet.png"_spr);
sprite->setPosition(bg->getPosition());
sprite->setScale(1.270f);
sprite->setScale(1.220f);
sprite->setZOrder(0);
node->addChild(sprite);
} else if (gauntletName == "Spike") {
Expand Down

0 comments on commit ae3069c

Please sign in to comment.