mirror of
https://github.com/geode-sdk/geode.git
synced 2025-03-22 02:45:49 -04:00
fix ModPopup eternally checking for updates on non-installed mods
This commit is contained in:
parent
22d5e4e97a
commit
082ad7b260
1 changed files with 4 additions and 0 deletions
|
@ -413,6 +413,10 @@ bool ModPopup::setup(ModSource&& src) {
|
|||
m_checkUpdateListener.bind(this, &ModPopup::onCheckUpdates);
|
||||
m_checkUpdateListener.setFilter(m_source.checkUpdates());
|
||||
}
|
||||
else {
|
||||
auto updatesStat = m_stats->getChildByID("update-check");
|
||||
this->setStatLabel(updatesStat, "Not Installed", true, ccc3(125, 125, 125));
|
||||
}
|
||||
|
||||
// Only listen for updates on this mod specifically
|
||||
m_updateStateListener.setFilter(UpdateModListStateFilter(UpdateModState(m_source.getID())));
|
||||
|
|
Loading…
Reference in a new issue