From 52ca649908a3dbf86578446edc6265bf9e83b50c Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Fri, 18 Mar 2022 08:26:17 +0100 Subject: [PATCH] add survey --- resources/desktop/com.github.rssguard.appdata.xml | 2 +- src/librssguard/miscellaneous/application.cpp | 13 ++++--------- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/resources/desktop/com.github.rssguard.appdata.xml b/resources/desktop/com.github.rssguard.appdata.xml index 52f172616..b85f41edd 100644 --- a/resources/desktop/com.github.rssguard.appdata.xml +++ b/resources/desktop/com.github.rssguard.appdata.xml @@ -26,7 +26,7 @@ https://github.com/sponsors/martinrotter - + none diff --git a/src/librssguard/miscellaneous/application.cpp b/src/librssguard/miscellaneous/application.cpp index cb9ea20c0..8fbf6a55a 100644 --- a/src/librssguard/miscellaneous/application.cpp +++ b/src/librssguard/miscellaneous/application.cpp @@ -257,15 +257,10 @@ void Application::loadDynamicShortcuts() { void Application::showPolls() const { if(isFirstRunCurrentVersion()) { - qApp->showGuiMessage(Notification::Event::NewAppVersionAvailable, { - tr("RSS Guard has Discord server!"), - tr("You can visit it now! Click me!"), - QSystemTrayIcon::MessageIcon::Information }, - {}, { - tr("Go to Discord!"), - [this]() { - web()->openUrlInExternalBrowser(QSL("https://discord.gg/7xbVMPPNqH")); - } }); + qApp->showGuiMessage(Notification::Event::GeneralEvent, + { QSL("%1 survey").arg(QSL(APP_NAME)), QSL("Please, fill the survey."), QSystemTrayIcon::MessageIcon::Warning }, + { false, true, false }); + qApp->web()->openUrlInExternalBrowser(QSL("https://forms.gle/9GgSa38Awqr37xLV8")); } }