Commit 91bb74c2 authored by Ronan Abhamon's avatar Ronan Abhamon

fix(Notifications/Notification): remove binding loop

parent 91ef7469
......@@ -106,7 +106,10 @@ void Notifier::showCallMessage (
m_mutex.unlock();
// Display notification.
QMetaObject::invokeMethod(object, "show", Qt::DirectConnection);
QMetaObject::invokeMethod(
object, NOTIFICATION_SHOW_METHOD_NAME,
Qt::DirectConnection
);
// Destroy it after timeout.
QTimer::singleShot(timeout, this, [object,this]() {
......
......@@ -35,9 +35,13 @@ DesktopPopup {
window.y = Qt.binding(function () {
var screen = window.Screen
return screen != null
? screen.desktopAvailableHeight - window.height - notificationOffset
: 0
if (screen == null) {
return 0
}
var height = screen.desktopAvailableHeight - window.height
return height - notificationOffset % height
})
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment