fix flicker of notification
This commit is contained in:
parent
7803a8bfdc
commit
64ee05b079
|
@ -31,6 +31,7 @@ Rectangle {
|
||||||
animation.from = Screen.desktopAvailableWidth
|
animation.from = Screen.desktopAvailableWidth
|
||||||
animation.to = Screen.desktopAvailableWidth - width
|
animation.to = Screen.desktopAvailableWidth - width
|
||||||
animation.start()
|
animation.start()
|
||||||
|
window.visible = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -95,9 +95,6 @@ void NotifyWidget::display(const Notification ¬ification)
|
||||||
Q_ARG(QVariant, color),
|
Q_ARG(QVariant, color),
|
||||||
Q_ARG(QVariant, textColor),
|
Q_ARG(QVariant, textColor),
|
||||||
Q_ARG(QVariant, notification.isUpdate()));
|
Q_ARG(QVariant, notification.isUpdate()));
|
||||||
if (!notification.isUpdate()) {
|
|
||||||
show();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue