summaryrefslogtreecommitdiff
path: root/src/nexusinterface.cpp
diff options
context:
space:
mode:
authorSilarn <jrim@rimpo.org>2019-01-29 01:35:13 -0600
committerSilarn <jrim@rimpo.org>2019-02-18 21:28:26 -0600
commita305ea2270c02172973f365986f194652ad344ec (patch)
tree8b38ca0c15f84c74dd218286520b72aa6ff250ec /src/nexusinterface.cpp
parent370e010a1adebf68efe5062c5d3a2ed8e048b654 (diff)
Translate nexus game name to short name to fix fetching updates
Diffstat (limited to 'src/nexusinterface.cpp')
-rw-r--r--src/nexusinterface.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nexusinterface.cpp b/src/nexusinterface.cpp
index c149f987..1e50f0b2 100644
--- a/src/nexusinterface.cpp
+++ b/src/nexusinterface.cpp
@@ -157,7 +157,7 @@ NexusInterface::NexusInterface(PluginContainer *pluginContainer)
connect(m_AccessManager, SIGNAL(requestNXMDownload(QString)), this, SLOT(downloadRequestedNXM(QString)));
m_RetryTimer.setSingleShot(true);
- m_RetryTimer.setInterval(1000);
+ m_RetryTimer.setInterval(2000);
m_RetryTimer.callOnTimeout(this, &NexusInterface::nextRequest);
}
@@ -476,7 +476,8 @@ void NexusInterface::nextRequest()
if (m_RemainingRequests <= 0) {
qWarning() << tr("You've exceeded the Nexus API rate limit and requests are now being throttled.");
- m_RetryTimer.start();
+ if (!m_RetryTimer.isActive())
+ m_RetryTimer.start();
return;
}