mirror of
https://github.com/status-im/snorenotify.git
synced 2025-01-10 08:35:54 +00:00
fix markup stuff
This commit is contained in:
parent
0433f38f37
commit
64a680f729
@ -45,6 +45,7 @@ NotificationData::NotificationData(const Snore::Application &application, const
|
|||||||
{
|
{
|
||||||
notificationCount++;
|
notificationCount++;
|
||||||
snoreDebug(SNORE_INFO) << "Creating Notification: ActiveNotifications" << notificationCount << "id" << m_id;
|
snoreDebug(SNORE_INFO) << "Creating Notification: ActiveNotifications" << notificationCount << "id" << m_id;
|
||||||
|
snoreDebug(SNORE_INFO) << title << text;
|
||||||
initHints();
|
initHints();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -61,8 +62,9 @@ Snore::NotificationData::NotificationData(const Notification &old, const QString
|
|||||||
m_toReplace(old)
|
m_toReplace(old)
|
||||||
{
|
{
|
||||||
notificationCount++;
|
notificationCount++;
|
||||||
initHints();
|
|
||||||
snoreDebug(SNORE_INFO) << "Creating Notification: ActiveNotifications" << notificationCount << "id" << m_id;
|
snoreDebug(SNORE_INFO) << "Creating Notification: ActiveNotifications" << notificationCount << "id" << m_id;
|
||||||
|
snoreDebug(SNORE_INFO) << title << text;
|
||||||
|
initHints();
|
||||||
}
|
}
|
||||||
|
|
||||||
NotificationData::~NotificationData()
|
NotificationData::~NotificationData()
|
||||||
@ -92,8 +94,12 @@ void NotificationData::setTimeoutTimer(QTimer *timer)
|
|||||||
|
|
||||||
QString NotificationData::resolveMarkup(const QString &string, Utils::MARKUP_FLAGS flags)
|
QString NotificationData::resolveMarkup(const QString &string, Utils::MARKUP_FLAGS flags)
|
||||||
{
|
{
|
||||||
if(flags != Utils::NO_MARKUP && !m_application.constHints().value("use-markup").toBool()) {
|
if(!m_application.constHints().value("use-markup").toBool()) {
|
||||||
|
if(flags == Utils::NO_MARKUP){
|
||||||
|
return string;
|
||||||
|
} else {
|
||||||
return string.toHtmlEscaped();
|
return string.toHtmlEscaped();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
return Utils::normalizeMarkup(string, flags);
|
return Utils::normalizeMarkup(string, flags);
|
||||||
}
|
}
|
||||||
|
@ -12,5 +12,6 @@ if(Qt5WebSockets_FOUND)
|
|||||||
|
|
||||||
add_library(libsnore_frontend_pushover MODULE ${PUSHOVER_FRONTEND_SRC} )
|
add_library(libsnore_frontend_pushover MODULE ${PUSHOVER_FRONTEND_SRC} )
|
||||||
target_link_libraries(libsnore_frontend_pushover Snore::Libsnore Qt5::WebSockets )
|
target_link_libraries(libsnore_frontend_pushover Snore::Libsnore Qt5::WebSockets )
|
||||||
|
install(TARGETS libsnore_frontend_pushover ${SNORE_PLUGIN_INSTALL_PATH})
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user