diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index c43582a..9072bcf 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -55,6 +55,7 @@ void MainWindow::setupWebView() { {"--icon", image_path, "--app-name", "discord-screenaudio", title, message}); } else if (m_useKF5Notifications) { +#ifdef KNOTIFICATIONS KNotification *notification = new KNotification("discordNotification"); notification->setTitle(notificationInfo->title()); @@ -68,6 +69,7 @@ void MainWindow::setupWebView() { activateWindow(); }); notification->sendEvent(); +#endif } });