diff options
| author | Jonathan Feenstra <26406078+JonathanFeenstra@users.noreply.github.com> | 2026-05-15 09:23:09 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-15 02:23:09 -0500 |
| commit | 55de581ee9829c5fcb5bae37504fad4e89cac721 (patch) | |
| tree | d126ea862033f96da7381fc40322216af51adf66 /src/mainwindow.cpp | |
| parent | 6748953d35516b948d83dd135cc970c805efeff0 (diff) | |
Add setting to show notifications when downloads complete or fail (#2338)
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 0a4fba2e..6a662173 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -142,6 +142,7 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>. #include <QShortcut> #include <QSize> #include <QSizePolicy> +#include <QSystemTrayIcon> #include <QTime> #include <QTimer> #include <QToolButton> @@ -2266,6 +2267,12 @@ QMainWindow* MainWindow::mainWindow() return this; } +void MainWindow::showNotification(const QString& title, const QString& message, + QSystemTrayIcon::MessageIcon icon) +{ + m_SystemTrayManager->showNotification(title, message, icon); +} + void MainWindow::on_tabWidget_currentChanged(int index) { QWidget* currentWidget = ui->tabWidget->widget(index); |
