Skip to content

Commit

Permalink
fix: fix 2 sneaky crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
Fleeym committed Dec 28, 2024
1 parent 6180e73 commit 211c465
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ file(GLOB SOURCES
src/*.cpp
)


add_library(${PROJECT_NAME} SHARED ${SOURCES})
target_include_directories(${PROJECT_NAME} PUBLIC include src)

Expand Down
3 changes: 2 additions & 1 deletion src/hooks/custom_song_widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ class $modify(JBSongWidget, CustomSongWidget) {

m_fields->nongs = nongs;
this->createSongLabels(nongs);
if (!nongs->isDefaultActive()) {
if (!nongs->isDefaultActive() && m_deleteBtn) {
m_deleteBtn->setVisible(false);
}
}
Expand Down Expand Up @@ -363,6 +363,7 @@ class $modify(JBSongWidget, CustomSongWidget) {
if (m_songs.size() == 0 && m_sfx.size() == 0 && !m_isMusicLibrary) {
if (m_fields->sizeIdLabel != nullptr) {
m_fields->sizeIdLabel->removeFromParent();
m_fields->sizeIdLabel = nullptr;
}
auto data = NongManager::get().getNongs(songID).value();

Expand Down

0 comments on commit 211c465

Please sign in to comment.