Skip to content

Commit

Permalink
fix the condition
Browse files Browse the repository at this point in the history
  • Loading branch information
altalk23 committed Dec 13, 2024
1 parent fdf4348 commit 89554c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loader/src/ui/mods/popups/ModPopup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ void ModPopup::updateState() {

m_updateBtn->setVisible(m_source.hasUpdates().has_value() && asMod->getRequestedAction() == ModRequestedAction::None);
m_installBtn->setVisible(this->availableForInstall());
m_unavailableBtn->setVisible(m_source.asServer() && this->availableForInstall());
m_unavailableBtn->setVisible(m_source.asServer() && !this->availableForInstall());
m_uninstallBtn->setVisible(asMod && asMod->getRequestedAction() == ModRequestedAction::None);

if (asMod && modRequestedActionIsUninstall(asMod->getRequestedAction())) {
Expand Down

0 comments on commit 89554c3

Please sign in to comment.