Skip to content

Commit 22b58fd

Browse files
committed
D-O-M-I-N-G-O
1 parent ff4e3a5 commit 22b58fd

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/Utils.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include "SongManager.hpp"
22
#include "ui/PlayingCard.hpp"
3+
#include "ui/SongControlMenu.hpp"
34
#include "Utils.hpp"
45
#include <random>
56
#include <regex>
@@ -403,6 +404,7 @@ void Utils::resetSongManagerRefreshVectorSetNewSongBecause(const std::string_vie
403404
// change the song when you click apply, stoi will not like custom names. --elnexreal
404405

405406
Utils::setNewSong();
407+
if (SongControlMenu* scm = cocos2d::CCScene::get()->getChildByType<SongControlMenu>(0); scm) return geode::Loader::get()->queueInMainThread([scm] { scm->onRegenButton(nullptr); });
406408
}
407409

408410

src/ui/SongControlMenu.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ class SongControlMenu final : public geode::Popup<const std::string&> {
1010
cocos2d::extension::CCScale9Sprite*b{};
1111
bool setup(std::string const& id) override;
1212
void onShuffleButton(CCObject*);
13-
void onRegenButton(CCObject*);
1413
void onCopyButton(CCObject*);
1514
void onBlacklistButton(CCObject*);
1615
void onFavoriteButton(CCObject*);
@@ -19,6 +18,7 @@ class SongControlMenu final : public geode::Popup<const std::string&> {
1918
void onSettingsButton(CCObject*);
2019
public:
2120
static SongControlMenu* create(const std::string& id);
21+
void onRegenButton(CCObject*);
2222
void updateCurrentLabel();
2323
void onExit() override;
2424
};

0 commit comments

Comments
 (0)