diff --git a/loader/src/ui/internal/info/ModInfoPopup.cpp b/loader/src/ui/internal/info/ModInfoPopup.cpp index 07324387..08359f33 100644 --- a/loader/src/ui/internal/info/ModInfoPopup.cpp +++ b/loader/src/ui/internal/info/ModInfoPopup.cpp @@ -426,10 +426,6 @@ void LocalModInfoPopup::onEnableMod(CCObject* sender) { "need to restart the game to have it fully unloaded.", "OK" )->show(); - if (m_layer) { - m_layer->updateAllStates(nullptr); - } - return; } if (as(sender)->isToggled()) { auto res = m_mod->loadBinary(); diff --git a/loader/src/ui/internal/list/ModListCell.cpp b/loader/src/ui/internal/list/ModListCell.cpp index b70c83eb..ad2f1ae8 100644 --- a/loader/src/ui/internal/list/ModListCell.cpp +++ b/loader/src/ui/internal/list/ModListCell.cpp @@ -176,10 +176,6 @@ void ModCell::onEnable(CCObject* sender) { "need to restart the game to have it fully unloaded.", "OK" )->show(); - if (m_layer) { - m_layer->updateAllStates(this); - } - return; } if (!as(sender)->isToggled()) { tryOrAlert(m_mod->enable(), "Error enabling mod");