diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2022-01-06 18:41:36 +0200 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2022-01-09 17:54:03 +0200 |
commit | f3bdc143b67e8a5e763071a0774f6d994ca35c57 (patch) | |
tree | cec260252ab0aed0bdf26af6531c116538b9f86d /src/qt/bitcoin.cpp | |
parent | 0e193deb523a4fa04e0ee69bd66f917895802ac9 (diff) |
refactor, qt: Add SHUTDOWN_POLLING_DELAY constant
A named constant is better for the code readability. Also it could be
reused in an alternative GUI implementation (e.g., QML-based).
Diffstat (limited to 'src/qt/bitcoin.cpp')
-rw-r--r-- | src/qt/bitcoin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp index 9b9585f993..9b5783e00c 100644 --- a/src/qt/bitcoin.cpp +++ b/src/qt/bitcoin.cpp @@ -414,7 +414,7 @@ void BitcoinApplication::initializeResult(bool success, interfaces::BlockAndHead QTimer::singleShot(100ms, paymentServer, &PaymentServer::uiReady); } #endif - pollShutdownTimer->start(200ms); + pollShutdownTimer->start(SHUTDOWN_POLLING_DELAY); } else { Q_EMIT splashFinished(); // Make sure splash screen doesn't stick around during shutdown requestShutdown(); |