summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2017-04-19 22:07:34 +0200
committerPetr Mrázek <peterix@gmail.com>2017-04-19 22:23:00 +0200
commit60777ad8ce97997493bcaf3eddd3c9c447756cb3 (patch)
treeb548f4c2d3dd720e6655977a476f74c9afc78a9d /api
parent88041783e6a8c8f4b1e9bda55e6defe9feb7d93b (diff)
downloadMultiMC-60777ad8ce97997493bcaf3eddd3c9c447756cb3.tar
MultiMC-60777ad8ce97997493bcaf3eddd3c9c447756cb3.tar.gz
MultiMC-60777ad8ce97997493bcaf3eddd3c9c447756cb3.tar.lz
MultiMC-60777ad8ce97997493bcaf3eddd3c9c447756cb3.tar.xz
MultiMC-60777ad8ce97997493bcaf3eddd3c9c447756cb3.zip
GH-1856 always pull new versions of metadata when requested
The only block is if it's already happening.
Diffstat (limited to 'api')
-rw-r--r--api/logic/meta/BaseEntity.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/api/logic/meta/BaseEntity.h b/api/logic/meta/BaseEntity.h
index 85051d97..85c25e48 100644
--- a/api/logic/meta/BaseEntity.h
+++ b/api/logic/meta/BaseEntity.h
@@ -57,7 +57,8 @@ public:
}
bool shouldStartRemoteUpdate() const
{
- return m_updateStatus == UpdateStatus::NotDone;
+ // TODO: version-locks and offline mode?
+ return m_updateStatus != UpdateStatus::InProgress;
}
void load();