mirror of
https://github.com/status-im/snorenotify.git
synced 2025-02-26 23:10:39 +00:00
More logging
Signed-off-by: Max Risuhin <risuhin.max@gmail.com>
This commit is contained in:
parent
5191eff012
commit
12b925a45f
@ -157,7 +157,8 @@ void Notification::addActiveIn(const QObject *o)
|
||||
}
|
||||
d->m_activeIn.insert(o);
|
||||
SnoreCorePrivate::instance()->m_activeNotifications[id()] = *this;
|
||||
qCDebug(SNORE) << SnoreCorePrivate::instance()->m_activeNotifications.size();
|
||||
qCDebug(SNORE) << "Notification::addActiveIn notification with id:" << id() <<
|
||||
" added for object: " << o << " active queue size:" << SnoreCorePrivate::instance()->m_activeNotifications.size();
|
||||
}
|
||||
|
||||
bool Notification::isActiveIn(const QObject *o) const
|
||||
@ -167,11 +168,15 @@ bool Notification::isActiveIn(const QObject *o) const
|
||||
|
||||
bool Notification::removeActiveIn(const QObject *o)
|
||||
{
|
||||
qCDebug(SNORE) << "Notification::removeActiveIn for notification with id:" << id()
|
||||
<< " remove object: " << o;
|
||||
bool out = d->m_activeIn.remove(o);
|
||||
if (d->m_activeIn.isEmpty()) {
|
||||
qCDebug(SNORE) << "Removing notification from acive queue";
|
||||
SnoreCorePrivate::instance()->m_activeNotifications.remove(id());
|
||||
qCDebug(SNORE) << SnoreCorePrivate::instance()->m_activeNotifications.size();
|
||||
}
|
||||
qCDebug(SNORE) << "ActiveIn objects after removing: " << d->m_activeIn;
|
||||
return out;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user