mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-23 22:58:15 +00:00
fix(Notifications/Notification): remove binding loop
This commit is contained in:
parent
91ef7469d0
commit
91bb74c218
2 changed files with 11 additions and 4 deletions
|
|
@ -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
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue