fix error

This commit is contained in:
Malte Jürgens 2022-11-05 00:08:25 +01:00
parent b0a8815bb8
commit e41af697f7
No known key found for this signature in database
GPG key ID: D29FBD5F93C0CFC3

View file

@ -55,6 +55,7 @@ void MainWindow::setupWebView() {
{"--icon", image_path, "--app-name", {"--icon", image_path, "--app-name",
"discord-screenaudio", title, message}); "discord-screenaudio", title, message});
} else if (m_useKF5Notifications) { } else if (m_useKF5Notifications) {
#ifdef KNOTIFICATIONS
KNotification *notification = KNotification *notification =
new KNotification("discordNotification"); new KNotification("discordNotification");
notification->setTitle(notificationInfo->title()); notification->setTitle(notificationInfo->title());
@ -68,6 +69,7 @@ void MainWindow::setupWebView() {
activateWindow(); activateWindow();
}); });
notification->sendEvent(); notification->sendEvent();
#endif
} }
}); });