Commit f809c5c4 authored by Ronan Abhamon's avatar Ronan Abhamon

fix(ui/modules/Linphone/Notifications/Notification): always display popups on mac

parent adb561d7
...@@ -50,8 +50,8 @@ ...@@ -50,8 +50,8 @@
// Arbitrary hardcoded values. // Arbitrary hardcoded values.
#define NOTIFICATION_SPACING 10 #define NOTIFICATION_SPACING 10
#define N_MAX_NOTIFICATIONS 15 #define N_MAX_NOTIFICATIONS 5
#define MAX_TIMEOUT 60000 #define MAX_TIMEOUT 30000
using namespace std; using namespace std;
...@@ -181,11 +181,11 @@ void Notifier::deleteNotification (QVariant notification) { ...@@ -181,11 +181,11 @@ void Notifier::deleteNotification (QVariant notification) {
instance->property(NOTIFICATION_PROPERTY_TIMER).value<QTimer *>()->stop(); instance->property(NOTIFICATION_PROPERTY_TIMER).value<QTimer *>()->stop();
mInstancesNumber--; mInstancesNumber--;
Q_ASSERT(mInstancesNumber >= 0);
if (mInstancesNumber == 0) if (mInstancesNumber == 0)
mOffset = 0; mOffset = 0;
Q_ASSERT(mInstancesNumber >= 0);
mMutex.unlock(); mMutex.unlock();
instance->deleteLater(); instance->deleteLater();
......
...@@ -36,7 +36,7 @@ DesktopPopup { ...@@ -36,7 +36,7 @@ DesktopPopup {
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
flags: Qt.Popup flags: Qt.Window | Qt.FramelessWindowHint | Qt.WindowStaysOnTopHint
Component.onCompleted: { Component.onCompleted: {
var window = _window = data[0] var window = _window = data[0]
......
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