aboutsummaryrefslogtreecommitdiff
path: root/src/qt/bitcoingui.h
diff options
context:
space:
mode:
authorAlexey Ivanov <alexey.ivanes@gmail.com>2018-11-01 18:22:06 +0300
committerAlexey Ivanov <alexey.ivanes@gmail.com>2018-11-01 18:22:06 +0300
commit1e0f3c44992fb82e6bf36c2ef9277b0759c17c4c (patch)
tree32b5f7fa397c16ee79b6ac1fe9f5c56b06d95902 /src/qt/bitcoingui.h
parentf6df989842a1dee7e8ad779531c328456c7148a0 (diff)
downloadbitcoin-1e0f3c44992fb82e6bf36c2ef9277b0759c17c4c.tar.xz
macOS: disable AppNap during sync
Signed-off-by: Alexey Ivanov <alexey.ivanes@gmail.com>
Diffstat (limited to 'src/qt/bitcoingui.h')
-rw-r--r--src/qt/bitcoingui.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/qt/bitcoingui.h b/src/qt/bitcoingui.h
index dcaca10557..57b70803ae 100644
--- a/src/qt/bitcoingui.h
+++ b/src/qt/bitcoingui.h
@@ -20,6 +20,10 @@
#include <QPoint>
#include <QSystemTrayIcon>
+#ifdef Q_OS_MAC
+#include <qt/macos_appnap.h>
+#endif
+
#include <memory>
class ClientModel;
@@ -143,6 +147,10 @@ private:
HelpMessageDialog* helpMessageDialog = nullptr;
ModalOverlay* modalOverlay = nullptr;
+#ifdef Q_OS_MAC
+ CAppNapInhibitor* m_app_nap_inhibitor = nullptr;
+#endif
+
/** Keep track of previous number of blocks, to detect progress */
int prevBlocks = 0;
int spinnerFrame = 0;