From bba5baec37636912a4ac25abaf41aa3abe79b11c Mon Sep 17 00:00:00 2001
From: moneromooo-monero <moneromooo-monero@users.noreply.github.com>
Date: Fri, 11 Oct 2019 14:29:44 +0000
Subject: [PATCH] simplewallet: don't trigger idle lock right after a
 foreground refresh

---
 src/simplewallet/simplewallet.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp
index f07d142fb..c61a9b127 100644
--- a/src/simplewallet/simplewallet.cpp
+++ b/src/simplewallet/simplewallet.cpp
@@ -5311,6 +5311,9 @@ bool simple_wallet::refresh_main(uint64_t start_height, enum ResetType reset, bo
     fail_msg_writer() << tr("refresh failed: ") << ss.str() << ". " << tr("Blocks received: ") << fetched_blocks;
   }
 
+  // prevent it from triggering the idle screen due to waiting for a foreground refresh
+  m_last_activity_time = time(NULL);
+
   return true;
 }
 //----------------------------------------------------------------------------------------------------