From e0db7177b49ad73ab5296bc90a359d63a5503cbe Mon Sep 17 00:00:00 2001 From: isanae <14251494+isanae@users.noreply.github.com> Date: Fri, 10 Jul 2020 15:04:54 -0400 Subject: added hidden validation_timeouts setting --- src/nxmaccessmanager.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/nxmaccessmanager.cpp') diff --git a/src/nxmaccessmanager.cpp b/src/nxmaccessmanager.cpp index 0064f888..2fe676ba 100644 --- a/src/nxmaccessmanager.cpp +++ b/src/nxmaccessmanager.cpp @@ -611,17 +611,19 @@ void NexusKeyValidator::start(const QString& key, Behaviour b) m_key = key; + const auto timeouts = Settings::instance().nexus().validationTimeouts(); + switch (b) { case OneShot: { - createAttempts({10s}); + createAttempts({timeouts[0]}); break; } case Retry: { - createAttempts({10s, 15s, 20s}); + createAttempts(timeouts); break; } } -- cgit v1.3.1