From de1fd0f465f894a7095370fc55fe36a47332bde9 Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Sun, 12 Mar 2017 13:21:34 +0200 Subject: [PATCH] temporary raise timer double to hide timer --it is also bound between values 1800 and 3000 --- app/visibilitymanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/visibilitymanager.cpp b/app/visibilitymanager.cpp index 662130bfd..18f0186ef 100644 --- a/app/visibilitymanager.cpp +++ b/app/visibilitymanager.cpp @@ -271,7 +271,7 @@ void VisibilityManagerPrivate::raiseDockTemporarily() if (isHidden) emit q->mustBeShown(); - QTimer::singleShot(1800, this, [&]() { + QTimer::singleShot(qBound(1800, 2 * timerHide.interval(), 3000), this, [&]() { raiseTemporarily = false; hideNow = true; updateHiddenState();