Skip to content

Commit

Permalink
aaa idk
Browse files Browse the repository at this point in the history
v1.1
  • Loading branch information
user95401 committed Oct 11, 2024
1 parent 294dfef commit e96822d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"id": "user95401.geode-mod-comments",
"name": "Mod Comments",
"version": "v1.2.0",
"version": "v1.1.0",
"developer": "user95401",
"description": "add comments in mod popups",
"tags": [ "online", "enhancement", "interface", "content", "developer" ],
Expand Down
8 changes: 1 addition & 7 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -330,15 +330,9 @@ void notifyLoadLoop() {
), nullptr);

Ref<CCActionInstant> waitForUser;
static auto attempts = 0;
waitForUser = CCLambdaAction::create(
[notifyLoader, waitForUser, getNotifications]() {
if (attempts > 7) return;
attempts += 1;
if (ghAccount::user.contains("login")) {
attempts = 0;
notifyLoader->runAction(getNotifications);
}
if (ghAccount::user.contains("login")) notifyLoader->runAction(getNotifications);
else notifyLoader->runAction(CCSequence::create(CCDelayTime::create(0.1f), CCSpawn::create(waitForUser, nullptr), nullptr));
}
);
Expand Down

0 comments on commit e96822d

Please sign in to comment.