mirror of
https://github.com/status-im/snorenotify.git
synced 2025-02-03 12:13:42 +00:00
stop timeout timer if notification is closed
This commit is contained in:
parent
61f0908a36
commit
f05300178d
@ -79,6 +79,10 @@ void NotificationData::setActionInvoked(const Snore::Action &action)
|
|||||||
void NotificationData::setCloseReason(Snore::Notification::CloseReasons r)
|
void NotificationData::setCloseReason(Snore::Notification::CloseReasons r)
|
||||||
{
|
{
|
||||||
m_closeReason = r;
|
m_closeReason = r;
|
||||||
|
if (m_timeoutTimer) {
|
||||||
|
m_timeoutTimer->deleteLater();
|
||||||
|
m_timeoutTimer.reset();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
QString NotificationData::resolveMarkup(const QString &string, Utils::MARKUP_FLAGS flags)
|
QString NotificationData::resolveMarkup(const QString &string, Utils::MARKUP_FLAGS flags)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user