From 64ee05b07955b1656fc84115292b11a9da7e7de4 Mon Sep 17 00:00:00 2001 From: Patrick von Reth Date: Tue, 14 Oct 2014 11:30:01 +0200 Subject: [PATCH] fix flicker of notification --- src/plugins/backends/snore/notification.qml | 1 + src/plugins/backends/snore/notifywidget.cpp | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/plugins/backends/snore/notification.qml b/src/plugins/backends/snore/notification.qml index 86a29fc..dea1e09 100644 --- a/src/plugins/backends/snore/notification.qml +++ b/src/plugins/backends/snore/notification.qml @@ -31,6 +31,7 @@ Rectangle { animation.from = Screen.desktopAvailableWidth animation.to = Screen.desktopAvailableWidth - width animation.start() + window.visible = true } } diff --git a/src/plugins/backends/snore/notifywidget.cpp b/src/plugins/backends/snore/notifywidget.cpp index 207d4b9..805a48f 100644 --- a/src/plugins/backends/snore/notifywidget.cpp +++ b/src/plugins/backends/snore/notifywidget.cpp @@ -95,9 +95,6 @@ void NotifyWidget::display(const Notification ¬ification) Q_ARG(QVariant, color), Q_ARG(QVariant, textColor), Q_ARG(QVariant, notification.isUpdate())); - if (!notification.isUpdate()) { - show(); - } }