From e8b6c57c219df84ed30c1fa673124178c6d6a1af Mon Sep 17 00:00:00 2001 From: altalk23 <45172705+altalk23@users.noreply.github.com> Date: Tue, 12 Sep 2023 18:16:03 +0300 Subject: [PATCH] fix grayed out --- loader/src/ui/internal/list/ModListCell.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/loader/src/ui/internal/list/ModListCell.cpp b/loader/src/ui/internal/list/ModListCell.cpp index 766ba83e..d98d9218 100644 --- a/loader/src/ui/internal/list/ModListCell.cpp +++ b/loader/src/ui/internal/list/ModListCell.cpp @@ -255,10 +255,10 @@ void ModCell::updateState() { if (m_enableToggle) { m_enableToggle->toggle(m_mod->isEnabled()); m_enableToggle->setEnabled(toggleable); - m_enableToggle->m_offButton->setOpacity(toggleable ? 100 : 255); - m_enableToggle->m_offButton->setColor(toggleable ? cc3x(155) : cc3x(255)); - m_enableToggle->m_onButton->setOpacity(toggleable ? 100 : 255); - m_enableToggle->m_onButton->setColor(toggleable ? cc3x(155) : cc3x(255)); + m_enableToggle->m_offButton->setOpacity(!toggleable ? 100 : 255); + m_enableToggle->m_offButton->setColor(!toggleable ? cc3x(155) : cc3x(255)); + m_enableToggle->m_onButton->setOpacity(!toggleable ? 100 : 255); + m_enableToggle->m_onButton->setColor(!toggleable ? cc3x(155) : cc3x(255)); } bool hasProblems = false; for (auto const& item : Loader::get()->getProblems()) {