summaryrefslogtreecommitdiff
path: root/src/organizercore.cpp
diff options
context:
space:
mode:
authorJonathan Feenstra <26406078+JonathanFeenstra@users.noreply.github.com>2026-05-15 09:23:09 +0200
committerGitHub <noreply@github.com>2026-05-15 02:23:09 -0500
commit55de581ee9829c5fcb5bae37504fad4e89cac721 (patch)
treed126ea862033f96da7381fc40322216af51adf66 /src/organizercore.cpp
parent6748953d35516b948d83dd135cc970c805efeff0 (diff)
Add setting to show notifications when downloads complete or fail (#2338)
Diffstat (limited to 'src/organizercore.cpp')
-rw-r--r--src/organizercore.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/organizercore.cpp b/src/organizercore.cpp
index 68ccd2ff..27ab9713 100644
--- a/src/organizercore.cpp
+++ b/src/organizercore.cpp
@@ -46,6 +46,7 @@
#include <QMessageBox>
#include <QNetworkInterface>
#include <QProcess>
+#include <QSystemTrayIcon>
#include <QTimer>
#include <QUrl>
#include <QWidget>
@@ -541,6 +542,14 @@ std::wstring OrganizerCore::getGlobalCoreDumpPath()
return {};
}
+void OrganizerCore::showNotification(const QString& message, const QString& title,
+ QSystemTrayIcon::MessageIcon icon)
+{
+ if (m_UserInterface) {
+ m_UserInterface->showNotification(message, title, icon);
+ }
+}
+
void OrganizerCore::setCurrentProfile(const QString& profileName)
{
if ((m_CurrentProfile != nullptr) && (profileName == m_CurrentProfile->name())) {