diff options
author | Jonas Schnelli <dev@jonasschnelli.ch> | 2016-12-05 09:26:43 +0100 |
---|---|---|
committer | Jonas Schnelli <dev@jonasschnelli.ch> | 2016-12-05 13:58:00 +0100 |
commit | 89a3723bdc5d563f036c1a579c3d3539cc8fc6e7 (patch) | |
tree | 08c295ecb2a409cf536c049e0a33e86b902ee470 /src/qt/modaloverlay.cpp | |
parent | d04aebaec7bbf4095bd4f6a715eb6ee834857115 (diff) |
[Qt] Show ModalOverlay by pressing the progress bar, disabled show() in sync mode
Diffstat (limited to 'src/qt/modaloverlay.cpp')
-rw-r--r-- | src/qt/modaloverlay.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/qt/modaloverlay.cpp b/src/qt/modaloverlay.cpp index 1a843a07ac..3e8282e63d 100644 --- a/src/qt/modaloverlay.cpp +++ b/src/qt/modaloverlay.cpp @@ -137,6 +137,13 @@ void ModalOverlay::tipUpdate(int count, const QDateTime& blockDate, double nVeri } } +void ModalOverlay::toggleVisibility() +{ + showHide(layerIsVisible, true); + if (!layerIsVisible) + userClosed = true; +} + void ModalOverlay::showHide(bool hide, bool userRequested) { if ( (layerIsVisible && !hide) || (!layerIsVisible && hide) || (!hide && userClosed && !userRequested)) |